Linux自宅サーバー構築
LinuxサーバーTOP
BBS
Linuxサーバー構築
INFORMATION
LINK
MAIL
 

 

SSHの設定

最終更新 2003年5月29日

SSHの設定をします。設定の方針を以下に示します。

  • まずはLAN内からの使用にとめます。(プレーンパスワード使用)
  • SSHでリモートからアクセス可能なユーザを制限する
  • 実績(スキル、やりたくなったら)が上がったら外からログインできるようにしてみます。
  • 外からはRSA公開鍵方式により認証を行います。
  • 外からはユーザ名とパスワードによる認証などは無効にする。

LAN内のみの使用なら設定は簡単です。いかに設定個所を記します。(赤字部)

[root@gw01 root]#vi /etc/ssh/sshd_config
# This is ssh server systemwide configuration file.

Port 22
Protocol 2,1
ListenAddress 0.0.0.0
#ListenAddress ::
# Used secret key for ssh protocol ver1.3 & 1.5
HostKey /etc/ssh/ssh_host_key
# Used secret key for ssh protocol ver2.0
HostDSAKey /etc/ssh/ssh_host_dsa_key
ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin no
AllowUsers yasu
#
# Don't read ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
StrictModes yes
X11Forwarding no
X11DisplayOffset 10
PrintMotd yes
KeepAlive yes

# Logging
SyslogFacility AUTH
LogLevel INFO
#obsoletes QuietMode and FascistLogging

RhostsAuthentication no
#
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
RhostsRSAAuthentication no
#
RSAAuthentication yes
DSAAuthentication yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
PermitEmptyPasswords no
# Uncomment to disable s/key passwords
#SkeyAuthentication no

# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no

# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes

CheckMail no
#UseLogin no

Subsystem sftp /usr/lib/ssh/sftp-server
#MaxStartups 10:30:60

 

[root@gw01 root]# /etc/init.d/sshd start

Tera Tarm ProとTTSSHのインストール

WindowsからSSHサーバに接続するには専用ソフトが必要です。
ここでは定番、Tera Tarm Pro+TTSSHのインストールします。
あわせて日本語版のインストールも!さてこちらからダウンロードしましょう。

Tera Tarm ProとTTSSH。それから両方ともzip刑式で圧縮されてます。
あわせてLhasaなどの解凍ソフトも用意しましょう。
これが構築できればlinuxサーバは全てWin上からの操作となる予定です・・・なんだけど私はcpu切り替え器(4cpu用)なるものを使っているのですがこれが結構便利なんです。ホットキー切り替えとかいって「ctrl」+「alt」+「shift」+[F2]って押せば2番目のPCの画面にあっという間に切り替わります。画面だけでなくて当然マウスもキーボードも切り替わりほんとにチョー便利。複数台PC持っている方にはお勧めです!!

さて本題のもどって・・・Tera Tarm Proをダウンロード、解凍、インストールします。
Tera Tarm Pro日本語版をダウンロード、解凍、Tera Tarm Proをインストしたディレクトリに上書きコピー。
TTSSHをダウンロード、解凍、Tera Tarm Proをインストしたディレクトリに上書きコピー。

TTSSH初期設定

@TTSSHを起動
A 設定するためcancelをクリック

B設定=>端末 漢字を両方ともEUCに変更。

C設定=>キーボード 文字を消すキーを設定。

D設定=>設定の保存 既存のTERATERMを上書き

TTSSHの起動

@起動したらSSHにチェック(ポートは22に変わる。) OKボタンクリックします

ASECURITY WARNINGの画面が表示されますが”Add〜”のところにチェックをいれContinueをクリック。
BエラーメッセージでますがOKをクリック。 ”Add〜”のところにチェックをいれれば次からは出ない。
Cユーザとパスワード入れます。

D接続が完了するとプロンプトの画面が出ます。
E終了する時はexitを実行。

 


linuxトップ | RedHatNetworkにもどる | お次VNCの設定

 


linux自宅サーバーPAOPAO
リンクはご自由に!
yasu@paopao.org
 
パオパオ、ぱおぱお