« 2006年06月 | ??? | 2006年12月 »

2006年11月01日

ssh??????????????

1.???????????????


client$ ssh-keygen -t dsa
/*???dsa??????????????*/

Generating public/private rsa1 key pair.
Enter file in which to save the key (/home/hoge/.ssh/identity):
/*?????????????(?????????????)*/

Enter passphrase (empty for no passphrase):
Enter same passphrase again:
/*??????????????????????????????????????????
????????????????????????????
?????"ssh-agent"??????????????????????????????????????
????????????????????????????????????*/

Your identification has been saved in /home/hoge/.ssh/identity.
Your public key has been saved in /home/hoge/.ssh/identity.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
/*?????????????????*/


2.?????????????????


client$ scp /home/hoge/.ssh/identity.pub hoge@192.168.1.1:/home/hoge/.ssh/
/*??????????????????????*/

server$ cat /home/hoge/.ssh/identity.pub >> /home/hoge/.ssh/authorized_keys

/*???????????????*/


3.?????ssh????????????????

"/etc/ssh/sshd_config"??????????


Protocol 2
/*ssh2???????????(RSA??1???????)*/
PasswordAuthentication no
/*????????????????*/
PermitRootLogin no
/*root??????????(????)*/
PermitEmptyPasswords no
/*????????????????*/

???sshd???????????

server# /etc/rc.d/rc.sshd restart


?????????????ssh?????????

??? zagan : 17:05 | ???? (0) | ???????