Linux:: settings shortcuts for your ssh connections to hosts

If you wish you could use friendly names to access your servers, here’s how to do it: Edit your ~/.ssh/config and add the following: Host myserver HostName 123.123.123.123 Port 12345 User bob Host other_server HostName test.something.org User alice CheckHostIP no Cipher blowfish Please, remember to customize “HostName” and “User” values… Continue reading

Use an alias to SSH to a server

Create a file ~/.ssh/config and insert the following: mauricio@rynex:~$ cat .ssh/config Host SERVER_ALIAS Port PORT HostName SERVER_NAME User USERNAME Compression yes TCPKeepAlive yes Change according to your servername, username and port, of course. Then you can simply use: ssh SERVER_ALIAS to connect to the server instead of using: ssh username@hostname

Setting up Slackware 13 (64-bit) (part 3)

Make your server trust your laptop+user: #su – “your username here” $ssh-keygen -t rsa $scp ~/.ssh/id_rsa.pub “remote_username”@”host_name”:”target_filepath_for_key_on_the_server” Now ssh into your server: $ssh “remote_user”@”host_name” $cd ~/.ssh Insert your laptop’s public key in the authorized keys list: $cat “target_filepath_for_key_on_the_server” >> authorized_keys Try ssh-ing your server again (this time you should not… Continue reading