1版
 
編集の要約なし
 
(8人の利用者による、間の11版が非表示)
23行目: 23行目:
-rw-r--r--  1 hogeo staff 231  4月  4 14:23 id_rsa.pub
-rw-r--r--  1 hogeo staff 231  4月  4 14:23 id_rsa.pub


[hogeo@server .ssh]$ mv id_rsa.pub authorized_keys
[hogeo@server .ssh]$ cat id_rsa.pub >> authorized_keys


[hogeo@server .ssh]$ chmod 600 authorized_keys
[hogeo@server .ssh]$ chmod 600 authorized_keys
33行目: 33行目:
-rw-------  1 hogeo staff  231  4月  4 14:23 authorized_keys
-rw-------  1 hogeo staff  231  4月  4 14:23 authorized_keys
-rw-------  1 hogeo staff  951  4月  4 14:23 id_rsa
-rw-------  1 hogeo staff  951  4月  4 14:23 id_rsa
-rw-r--r--  1 hogeo staff 231  4月  4 14:23 id_rsa.pub
[hogeo@server .ssh]$
[hogeo@server .ssh]$
</pre>
</pre>


id_rsa をローカルに落とす。
id_rsa をローカルに落とす。
== [メモ] su せず、 root で生成する場合 ==
nologin ユーザの sftp 用に必要なとき 等。
[root@server ~]# ssh-keygen -C [email protected]




以上。
以上。
[[Category:Linuxコマンド]]
[[Category:Linuxコマンド]]