FreeBSD 6.1 ssh の設定
FreeBSDをインストールしたがTeraTermで入れなかった。
それでは意味がない!!というかリモートできないから調べながらできない!!
先輩曰く
6系からは、鍵以外の認証はデフォルトで禁止してるらしい。
http://www.miloweb.net/ssh.html
と
http://www.mail-archive.com/freebsd-users-jp@jp.freebsd.org/msg00836.html
のやり取りを参考にした。
インストール時にssh利用すると選んだので、
/etc/rc.conf
の変更は必要なかった。
# vi /etc/ssh/sshd_config
で
PasswordAuthentication no
を
PasswordAuthentication yes
に変更して
できた。
再起動のコマンドがまた面倒で、相対パスじゃない!!
普通に
# sshd restart
って打つと
sshd re-exec requires execution with an absolute path
が出てしまう。
http://katakuri.sakura.ne.jp/~kata/archives/2005/01/openssh.html
面倒だから
# /etc/rc.d/sshd restart
とフルパスで打った。
これで
前回とあわせて
http://bittorrentlove.blog58.fc2.com/blog-entry-2.html
TeraTermでログインできた!!
はぁ、疲れた。
ちなみに
sshd_configの
PermitRootLogin no
を
yesに変えると
root
でもログインできる。
試したが、安全上noに戻した。
それでは意味がない!!というかリモートできないから調べながらできない!!
先輩曰く
6系からは、鍵以外の認証はデフォルトで禁止してるらしい。
http://www.miloweb.net/ssh.html
と
http://www.mail-archive.com/freebsd-users-jp@jp.freebsd.org/msg00836.html
のやり取りを参考にした。
インストール時にssh利用すると選んだので、
/etc/rc.conf
の変更は必要なかった。
# vi /etc/ssh/sshd_config
で
PasswordAuthentication no
を
PasswordAuthentication yes
に変更して
できた。
再起動のコマンドがまた面倒で、相対パスじゃない!!
普通に
# sshd restart
って打つと
sshd re-exec requires execution with an absolute path
が出てしまう。
http://katakuri.sakura.ne.jp/~kata/archives/2005/01/openssh.html
面倒だから
# /etc/rc.d/sshd restart
とフルパスで打った。
これで
前回とあわせて
http://bittorrentlove.blog58.fc2.com/blog-entry-2.html
TeraTermでログインできた!!
はぁ、疲れた。
ちなみに
sshd_configの
PermitRootLogin no
を
yesに変えると
root
でもログインできる。
試したが、安全上noに戻した。
テーマ:UNIX/Linux - ジャンル:コンピュータ
コメント
コメントの投稿
トラックバック
http://bittorrentlove.blog58.fc2.com/tb.php/3-2e8aaff8
この記事にトラックバックする(FC2ブログユーザー)
FC2 Blog Rankingへ投票現在UNIXランキング一位
人気blogランキングへ現在TOP10
