# emacs /etc/ssh/sshd_config
--------------- X11Forwarding yes ---------------
$ ls -l /usr/bin/ssh /usr/bin/ssh-keygenたっていない場合はパーミッションを変更する.
----- -rwsr-xr-x 1 root root 230248 Jul 12 19:52 /usr/bin/ssh -rwsr-xr-x 1 root root 151496 Jun 20 01:23 /usr/bin/ssh-keygen
# chmod 4755 /usr/bin/ssh /usr/bin/ssh-keygen
# emacs /etc/ssh/ssh_config
--------------- HostbasedAuthentication yes PreferredAuthentications hostbased,publickey,password ---------------
# emacs /etc/ssh/sshd_config
--------------- # Don't read the user's ~/.rhosts and ~/.shosts files IgnoreRhosts no # For this to work you will also need host keys in /etc/ssh_known_hosts RhostsRSAAuthentication yes # similar for protocol version 2 HostbasedAuthentication yes # Change to yes to enable tunnelled clear text passwords PasswordAuthentication yes ---------------
# service ssh restart
今回の場合, sango -> sango の nonpasslogin が行えればよい.
(別サーバへのテストを行う場合は, こちらを参照のこと)
mondo*@sango$ echo "sango.ep.sci.hokudai.ac.jp mondo*" > ~mondo*/.shosts
mondo*@sango$ chmod 600 ~mondo*/.shosts
mondo*@sango$ ssh sango.ep.sci.hokudai.ac.jp上記の通り, パスワードを聞かれずに login が成功したら OK.
The authenticity of host 'sango.ep.sci.hokudai.ac.jp (133.50.160.53)' can't be established. RSA key fingerprint is ##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##. Are you sure you want to continue connecting (yes/no)? yes ... mondo*@sango$
# emacs /etc/ssh/sshd_config ----- PermitRootLogin no
最終更新日:2017/03/26 (須藤 康平) | Copyright © 2017 epcore |