分类: LINUX
2010-09-08 11:28:30
SSH authorzied 认证和如何加快连接速度
[blackspace@DNS ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/blackspace/.ssh/id_rsa): --> Enter
Created directory '/home/blackspace/.ssh'.
Enter passphrase (empty for no passphrase): -->Enter
Enter same passphrase again: -->Enter
Your identification has been saved in /home/blackspace/.ssh/id_rsa.
Your public key has been saved in /home/blackspace/.ssh/id_rsa.pub.
The key fingerprint is:
3e:ed:38:4d:3a:81:6b:19:14:be:df:c3:48:98:31:aa
[blackspace@DNS ~]$
#scp /root/.ssh/id_rsa.pub
注:authorized_keys是在目标端的/etc/ssh/sshd_config中定义的,当然这个文件名也可以自己定义。目标端是没有/root/.ssh/的,需要手动建。mkdir /root/.ssh/
2.ssh加速度:
ssh速度慢的原因主要是因为DNS查询的问题。加速度的前提也就是把DNS的反向解析的命令去掉。
chinaunix网友2010-09-09 20:29:39
Download More than 1000 free IT eBooks: http://free-ebooks.appspot.com