nyanco@lx:~/.ssh$ ssh-copy-id nyanco@111.222.333.444
bash: ssh-copy-id: command not found
あら?無いようです しかた なかんべ
nyanco@lx:~/.ssh$ scp id_rsa.pub 111.222.333.444:/home/nyanco/.ssh
Password: 
id_rsa.pub                                    100%  215   305.1KB/s   00:00  
 相手側に乗り込んで
nyanco@lx:~/.ssh$ ssh -l nyanco 111.222.333.444
Password: 
nyanco@nyan:~$ cd .ssh/
nyanco@nyan:~/.ssh$ ls -l
合計 8
-rw-------    1 nyanco   users    172  8月 20日 2002年 environment
-rw-r--r--    1 nyanco   users    215  7月  5日  19:58 id_rsa.pub
-rw-r--r--    1 nyanco   users      0  7月  4日  12:59 known_hosts
通常の 方法
nyanco@nyan:~/.ssh$ cat id_rsa.pub >> authorized_keys2
nyanco@nyan:~/.ssh$ ls -l
合計 12
-rw-r--r--    1 nyanco   users    215  7月  5日  20:03 authorized_keys2
-rw-------    1 nyanco   users    172  8月 20日 2002年 environment
-rw-r--r--    1 nyanco   users    215  7月  5日  19:58 id_rsa.pub
-rw-r--r--    1 nyanco   users      0  7月  4日  12:59 known_hosts
最初何も無ければ
nyanco@nyan:~/.ssh$ mv id_rsa.pub authorized_keys2 
でも 良いのだが exit して 抜け出た後で 接続してみよう
nyanco@lx:~$ ssh -l nyanco 111.222.333.444
Enter passphrase for key '/home/nyanco/.ssh/id_rsa':にゃんたろうの 秘密鍵  Enter 
nyanco@nyan:~$   /*   うまく 入場できたようである。*/
nyanco@nyan:~$ exit
logout
Connection to 111.222.333.444 closed. 
取り敢えず うまく いってるようだ
lx:~# ssh -l root 111.222.333.444
The authenticity of host '111.222.333.444 (111.222.333.444)' can't be established.
RSA key fingerprint is 83:92:e4:80:7f:b4:76:ef:cb:44:96:8e:65:62:eb:09.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '111.222.333.444' (RSA) to the list of known hosts.
Password: 
Linux 2.4.27.
nyan:~# 
nyan:~# exit
logout
Connection to 111.222.333.444 closed.
現状 root でも 入場出来るように なっている これを 変更したい
にゃんたろう 拝!
2005年 7月 5日 (火) 20:45:12 JST  作成