ssh setup
A few tricks to make ssh use easier..
Keys
So you can log in without giving a password. Generate key on machine to be connected from using ssh-keygen then copy it to the authorized_keys file on the machine to be accessed.
[code]
ssh-keygen – t rsa
scp ~/.ssh/id_rsa.pub remotemachine:
ssh remotemachine
cat id_rsa.pub ~/.ssh/authorized_keys
rm id_rsa.pub
[/code]
Config file
So I can loggin using a simple name rather than otheruser@long.complicated.host.name. This is the contents of my laptops .ssh/config file:
[code]
Host name1
HostName realname.com
User remoteuser
ProxyCommand /usr/local/bin/connect -S socks.ncl.ac.uk %h %p
Host name2
HostName realname.com
User remoteuser
[/code]
This gives me 2 methods of accessing the same server. The first (ssh phuquockites) works on the uni network which requires socks proxying. The second (ssh soulflyer) works from home.
You must be logged in to post a comment.