ssh VL4
sshの設定を行いました。
--sshd_configファイルの追加・変更
#vi /etc/ssh/sshd_config
----
ServerKeyBits 1024 #暗号強度を1024ビットに
SyslogFacility AUTHPRIV #ログ設定
PermitRootLogin no #Rootでのログインを拒否する
RhostsRSAAuthentication no #Rhosts-RSA認証を許可
PermitEmptyPasswords no #パスワードが空白での認証を拒否する
PasswordAuthentication no #Linuxでのパスワード認証を拒否する
X11Forwarding no #X11転送を拒否
AllowUsers User_Name #接続を許可するユーザーの指定
Subsystem sftp /usr/libexec/openssh/sftp-server #サブシステムの設定
----
--sshdサービスの再起動
# service sshd restart
--RSA認証鍵の作成(ssh接続するユーザーにて行う)
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hoge_user/.ssh/id_rsa): <-Enter
Created directory '/home/hoge_user/.ssh'.
Enter passphrase (empty for no passphrase): <- passphraseの入力
Enter same passphrase again: <- passphraseの再入力
Your identification has been saved in /home/hoge_user/.ssh/id_rsa.
Your public key has been saved in /home/hoge_user/.ssh/id_rsa.pub.
The key fingerprint is:
7b:th:c9:77:9e:5f:3c:fr:46:30:66:ef:39:54:be:44 hoge_user@vl.hoge.com
$ cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys #鍵をauthorized_keysに追加
$ chmod 600 authorized_keys
$ rm id_rsa.pub #ファイルの削除
$ rm id_rsa #sshクライアントへコピーした後、削除
クライアントPCでは、”UTF-8 TeraTerm Pro with TTSSH2”等のsshクライアント
ソフトより、id_rsaファイルを指定してアクセスします。
--UTF-8 TeraTerm Pro with TTSSH2
http://www.forest.impress.co.jp/lib/inet/servernt/netuty/utf8teraterm.html
--参考ページ
http://www.h3.dion.ne.jp/~x723/ssh.html
「Vine Linux 4.xx」カテゴリの記事
- Wine Linux上でWindowsアプリ実行(2010.04.14)
- ntp VL4(2008.02.07)
- SNMP VL4(2008.02.03)
- ssh VL4(2007.12.28)
- Vine Linux4.2 (2007.12.27)



Comments