"Multiple ssh tricks (http://undeadly.org/cgi?action=article&sid=20071206030227)" несколько заметок по SSH:
- Using SSH keys (http://meinit.nl/using-ssh-keys)
</li>
- Simple distribution of SSH keys. (http://meinit.nl/distribute-ssh-keys-easily)
</li>
- An ssh-agent(1) trick (http://meinit.nl/ssh-agent-trick)
</li>
- <a href="http://meinit.nl/openssh-using-stepstones">SSH sessions via <i>stepstone</i> hosts.</a>
</li>
- Punching through firewalls with Putty and sshd(8) (http://meinit.nl/using-putty-and-an-http-proxy-to-ssh-anywhe...)
</li>URL: http://undeadly.org/cgi?action=article&sid=20071206030227
Новость: http://www.opennet.me/opennews/art.shtml?num=13099
последняя статья просто гениальная. научное открытие :)
mkdir ~/.ssh/keys
ssh-keygen -t dsa ~/.ssh/keys/server.keychmod 400 ~/.ssh/keys/server.key
scp ~/.ssh/keys/server.key.pub user@server:~/.ssh/
ssh user@server
Password:
$ cat ~/.ssh/server.key.pub >> ~/.ssh/authorized_keys
$ chmod 400 ~/.ssh/authorized_keys
$sudo vi /etc/ssh/ssh/sshd_configRSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keysCtrl+D
$echo "alias server='user@server -i ~/.ssh/keys/server.key" >> ~/.profile
$ source ~/.profile
$ server
user@server$ logoutscp ~/hren\'.bz2 ser@server:~/ -o IdentityFile=~/.ssh/keys/server.key
О чем еще можно писать ?
и есть такая замечательная весч как proxychains ;)