While tilde.town is accessible on the web and features lovely web pages written by its users, all of the interaction with tilde.town takes place inside the computer that runs tilde.town as opposed to via web forms that have an effect from outside tilde.town's computer.
This is what sets tilde.town apart from most other online communities. You connect directly to another computer from yours alongside other people and then write your web pages, chat, and play games all via text-based interfaces right on tilde.town's computer.
Prior to the web (which debuted in 1995) this is how pretty much all computer stuff got done. You connected directly to a machine (usually over a direct, physical phone line) and did your work there.
For a long time, people used a tool called telnet
to
connect to other computers. These days we use a tool called
ssh.
ssh
is a text-based tool that provides a direct connection
from your computer to another. ssh is an acronym that stands for Secure Shell.
The Shell part refers to the fact that it's a text-based tool; we use
the word shell to refer to a text-based interface that you give commands to.
The Secure part refers to the fact that, when you're using ssh, no
one can spy on your connection to another computer (unlike the
old telnet
command).
why bother with all of this? passwords are really insecure and hard to manage. Using keys makes life easier for you, fair user (your account is less likely to be hacked) and for me, your humble sysadmin (less administration than passwords).
The end goal of this tutorial is to make a key pair. That's a set of two files full of numbers and letters. One file is public (your public key) and the other private (your private key). You'll be submitting the public key in the sign-up form and using the private key when you connect to tilde.town using ssh.
choose your operating system: windows | mac osx | linux | android
We'll be using a tool called cmder, which is a rather nice terminal that provides ssh stuff for you, too.
Enter
:
mkdir .ssh || ssh-keygen -t rsa -b 2048 -f .ssh/tilde.town
cat ~/.ssh/tilde.town.pub
ssh-rsa
and paste it in the "SSH public key" field on the
sign up form (copy by highlighting the text and pressing control + c).
.ssh/tilde.town
) is
your private key. Treat it like a password and never share it with anyone.
Once ~vilmibm or another admin approves your sign-up, you can connect to tilde.town.
Enter
:
ssh -i ~/.ssh/tilde.town YOURUSERNAME@tilde.townReplace
YOURUSERNAME
with the username you signed up with. For example, if your username is sharon_olds
, you would run this command:
ssh -i ~/.ssh/tilde.town sharon_olds@tilde.town
/Applications/Utilities
).Enter
:
mkdir -m 700 ~/.ssh # Create your .ssh directory ssh-keygen -t rsa -b 2048 -f ~/.ssh/tilde.town # Create your keys
Enter
:
cd ~/.ssh # Go to the .ssh folder in your home folder cat tilde.town.pub # Outputs the content of your public key
ssh-rsa
and paste it in the "SSH public key" field on the
sign up form.
~/.ssh/tilde.town
) is
your private key. Treat it like a password and never share it with anyone.Once ~vilmibm or another admin approves your sign-up, you can connect to tilde.town.
/Applications/Utilities
).Enter
:
ssh -i ~/.ssh/tilde.town YOURUSERNAME@tilde.townReplace
YOURUSERNAME
with the username you signed up with. For example, if your username is sharon_olds
, you would run this command:
ssh -i ~/.ssh/tilde.town sharon_olds@tilde.town
There are lots of different Linux distributions out there but they should
all have ssh
, ssh-keygen
, and a terminal program.
Enter
:
mkdir -m 700 ~/.ssh # Create a folder called .ssh. It's okay if it already exists. ssh-keygen -trsa -b 2048 -f ~/.ssh/tilde.town # create the keypair
Enter
:
cd ~/.ssh # Go to the .ssh folder in your home folder cat tilde.town.pub # Output the content of your public key
ssh-rsa
and paste it in the SSH public key field on the signup form.
~/.ssh/tilde.town
) is
your private key. Treat it like a password and never share it with anyone.Once ~vilmibm or another admin approves your sign-up, you can connect to tilde.town.
Enter
:
ssh -i ~/.ssh/tilde.town YOURUSERNAME@tilde.townReplace
YOURUSERNAME
with the username you signed up with.
For example, if your username is sharon_olds
, you would run
this command:
ssh -i ~/.ssh/tilde.town sharon_olds@tilde.town
This is kind of a bonus round! Check out JuiceSSH and this tutorial for generating a keypair and this tutorial for connecting.
IMPORTANT! this tutorial is based on and uses parts of the tilde.club ssh primer.