💾 Archived View for tilde.team › wiki › ssh.md captured on 2022-03-01 at 16:37:11.
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
--- author: ~ben published: true title: ssh description: ssh tutorial and background info category: - main --- _or, how to tell other computers to do cool things_ --- > all users are required to use an ssh keypair for login, or will be required to proceed with manual account recovery with [~ben](/~ben/) or another admin. drop a line to [sudoers@tilde.team](mailto:sudoers@tilde.team) or hop on [irc](https://kiwi.tilde.chat/#team) for assistance. ## tilde.team details ports 22, 80, 443, and 2222 are available for ssh. the primary ip has 80 and 443 in use by nginx. use ssh.tilde.team to reach the secondary ip and use 80 and 443 for ssh. so, for example, you can do: ssh -p 443 user@ssh.tilde.team ssh user@tilde.team # this uses port 22, which can be blocked on some networks tilde.team's fingerprints are: ECDSA: SHA256:R3qNfKIF3IiXhKCbFX6rCKl73yzexi9Wodsow6XFres ED25519: SHA256:FErDF9upMkSg/yzw0N7i2o971LT/Bocd1qrDDpE315I RSA: SHA256:JR5oQPfC34ogd/SeIcMpaGR8BiBo4ciI5xWyBVCjj5o the key fingerprints are in dns as sshfp records as well, which you can check against by setting VerifyHostKeyDNS to yes in your `~/.ssh/config`. you can check the records yourself with the `dig` tool like this: dig sshfp tilde.team --- ## intro
mkdir -m 700 ~/.ssh
1. create your keys:
ssh-keygen -t ed25519 -a 100
1. if you press enter to accept the defaults, your public and private key will be located at `~/.ssh/id_ed25519.pub` and `~/.ssh/id_ed25519` respectively 1. `cat ~/.ssh/id_ed25519.pub` 1. copy the output of the last command and paste it in the sshkey field on the signup form (or email it to [~sudoers](mailto:sudoers@tilde.team) if you already have an account) #### using your keypair once [~ben](https://tilde.team/~ben/) or another admin approves your signup, you can join the tilde.team 1. open terminal (it's in `/Applications/Utilities`) 1. `ssh` to tilde.team:
ssh username@tilde.team
where username is your username (~ben would use `ssh ben@tilde.team`) 1. profit??? --- ### windows 10 windows 10 1809 or later has openssh built in, so you no longer need to install third-party tools. if openssh is not enabled, please see microsoft's documentation on [openssh in windows](https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview). #### generating your keypair 1. open your new shell 1. create your .ssh directory
mkdir .ssh
1. create your keypair
ssh-keygen -t ed25519 -a 100
1. if you press enter to accept the defaults, your public and private key will be located at `%UserProfile%\.ssh\id_ed25519.pub` and `%UserProfile%\.ssh\id_ed25519` respectively 1. `type %UserProfile%\.ssh\id_ed25519.pub` 1. copy the output of the last command and paste it in the sshkey field on the signup form #### using your keypair once [~ben](https://tilde.team/~ben/) or another admin approves your signup, you can join the tilde.team 1. open powershell (right click start button and select "windows powershell") 1. `ssh` to tilde.team:
ssh username@tilde.team
where username is your username (~ben would use `ssh ben@tilde.team`) 1. profit??? --- ### legacy windows older versions of windows unfortunately do not come with openssh, and you will need to install a third-party tool. you may choose from any of the following options: - [windows subsystem for linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) - [msys2](http://www.msys2.org/) - [git bash](https://git-scm.com) 1. open your new shell 1. create your .ssh directory
mkdir .ssh
1. create your keypair
ssh-keygen -t ed25519 -a 100
1. if you press enter to accept the defaults, your public and private key will be located at `~/.ssh/id_ed25519.pub` and `~/.ssh/id_ed25519` respectively 1. `cat ~/.ssh/id_ed25519.pub` 1. copy the output of the last command and paste it in the sshkey field on the signup form #### using your keypair once [~ben](https://tilde.team/~ben/) or another admin approves your signup, you can join the tilde.team 1. open terminal (location will vary depending on your choice) 1. `ssh` to tilde.team:
ssh username@tilde.team
where username is your username (~ben would use `ssh ben@tilde.team`) 1. profit??? --- ### linux there are a lot of linux distros, but `ssh` and `ssh-keygen` should be available in almost all cases. if they're not, look up how to install ssh for your distro. #### generating your keypair 1. make sure you have a `~/.ssh` directory
mkdir -m 700 ~/.ssh
1. create your keys
ssh-keygen -t ed25519 -a 100
1. if you press enter to accept the defaults, your public and private key will be located at `~/.ssh/id_ed25519.pub` and `~/.ssh/id_ed25519` respectively 1. `cat ~/.ssh/id_ed25519.pub` 1. copy the output of the last command and paste it in the sshkey field on the signup form #### using your keypair once [~ben](https://tilde.team/~ben/) or another admin approves your signup, you can join the tilde.team 1. open a terminal (this depends on your distro) 1. `ssh` to tilde.team:
ssh username@tilde.team
where username is your username (~ben would use `ssh ben@tilde.team`) 1. profit??? --- this tutorial is based on and uses parts of [the tilde.club ssh primer](https://github.com/tildeclub/tilde.club/blob/master/docs/ssh.md) and [the tilde.town ssh guide](https://tilde.town/wiki/getting-started/ssh.html).