2009-05-11 01:50:11 AYO 阿佑

ssh daemon 輕鬆快速搞定_用範例說明

===============================================================
ssh daemon 輕鬆快速搞定_用範例說明

by AYO 阿佑

===============================================================

本文以 範例說明,盡量最快速讓讀者搞定,
由於希望是 ""輕鬆快速搞定"" 所以不解釋為什麼

===============================================================
RedHat、Fedora、RHEL、CnetOS、OpenBSD、FreeBSD 請照做

1.使用 root login 或者 sudo su - 取得 root 權限
2. vi /etc/ssh/sshd_config 修改下面這幾行
   Port 22
   Protocol 2
   SyslogFacility AUTHPRIV
   PermitRootLogin no
   PasswordAuthentication yes
   :wq 儲存離開
3. service sshd restart
4. netstat -tl
   Active Internet connections (only servers)
   Proto Recv-Q Send-Q Local Address  Foreign Address  State
   tcp        0      0 *:sshd         *:*              LISTEN
5. 如果有看到 sshd LISTEN 表示,您已經從 Linux Server 啟動成功囉!!
   可喜可賀

===============================================================
其他 Linux 請照做

1.使用 root login 或者 sudo su - 取得 root 權限
2. vi /etc/init.d/sshd 找這一行 # config: /XXX/XXX/sshd_config
3. vi /XXX/XXX/sshd_config 修改下面這幾行
   Port 22
   Protocol 2
   SyslogFacility AUTHPRIV
   PermitRootLogin no
   PasswordAuthentication yes
   :wq 儲存離開
4. /etc/init.d/sshd stop
   /etc/init.d/sshd start
5. netstat -tl
   Active Internet connections (only servers)
   Proto Recv-Q Send-Q Local Address  Foreign Address  State
   tcp        0      0 *:sshd         *:*              LISTEN
6. 如果有看到 sshd LISTEN 表示,您已經從 Linux Server 啟動成功囉!!
   可喜可賀

===============================================================
Client 如何連接 ??

1. 如果是 Windows Platform 請使用 Putty、Pietty、PuttyC
2. 如果是 Linux Platform 直接使用 ssh [帳號]@[Linux Server IP] 即可登入

===============================================================
歡迎轉載,但請務必說明原出處

歡迎參觀 AYO 阿佑 個人的電腦技術園地
http://tw.myblog.yahoo.com/kain-0913/