2015年7月4日 星期六

安裝 OpenSSH 在 Debian 8.1 Linux 系統

安裝 OpenSSH 在 Debian 8.1 Linux 系統: 

筆者一般會使用另外一部電腦作為 Debian 8.1 Linux 系統的遠端連線,所以 Debian 8.1 Linux 系統的電腦一定有網絡功能,而連接 Debian 8.1 Linux 系統的 PC 電腦會使用 Telnet 或 SSH(Secure Shell),Telnet 於 1969年開始研發,是 Internet 遠端登錄服務的標準協議和主要方式,使用明碼的方式作收發通訊,很容易被監聽而遭竊取通訊。現在都會改用 SSH 作收發通訊,因為 SSH 是一種資料經過加密後的封包,即使被竊取了,該資料要經過解密才可以,相對比較安全,筆者選擇了 OpenSSH 作為遠端登錄服務。

Debian 8.1 Linux 系統的 OpenSSH Status
步驟 1:安裝 OpenSSH 程式
# apt-get install ssh openssh-server
# apt-get install ssh openssh-clent

步驟 2:修改 OpenSSH 程式設定
# nano /etc/ssh/sshd_config

##PermitRootLogin without-password
PermitRootLogin yes ◆ Line 31 Changed to yes

# ---- Add 20150623 ◆ Line 94 Added the following LINES in Bottom
# Keep client SSH connection alive by sending every 300 seconds a small
# keep-alive packet to the server in order to use ssh connection.
# 300 seconds equal 5 minutes.
ClientAliveInterval 300

# Disconnect client after 3333 "ClientAlive" requests.
# Format is (ClientAliveInterval x ClientAliveCountMax).
# Example  (300 seconds x 3333) = ~999,900 seconds = ~11 days.
ClientAliveCountMax 3333

# Ciphers
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,
aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
# /etc/init.d/ssh restart
 
Debian 8.1 Linux 系統的 OpenSSH Configuration File
步驟 3:用PieTTY / Putty 連接 SSH 遠端登錄服務 

Windows 的 PieTTY SSH 客端通訊程式
相關網址:
※ 在 Linux Debian 8.1 系統安裝及編譯 OpenWrt Trunk 程式
※ 在 Linux Debian 8.1 系統編譯 OpenWrt Trunk 8MB 固件程式
※ 如何將 OperWrt 8MB 固件程式寫入 8MB 閃存(Flash Memory)

※ 在 Linux Debian 8.1 系統安裝及編譯 OpenWrt Attitude Adjustment 程式
※ Subversion (SVN) 1.8.10 版本不兼容,錯誤編譯 OpenWrt Attitude Adjustment 程式

相關網址:
※ 微星(MSI)GS60 2QD Ghost 龍魂電競筆電(Gaming Notebook)- Debian(八)
※ 測試 Debian 8.1 Linux 系統的網絡功能設置
※ 修改 Debian 8.1 Linux 系統的 GRUB 和 80×25 文字解像度

※ 安裝 OpenSSH 在 Debian 8.1 Linux 系統
※ 在 Debian 8.1 Linux 系統讀寫 USB 手指

2015 年 7月 4日 天氣報告
氣溫:28.8度 @ 21:50
相對濕度:百分之 80%
天氣:大致多雲

沒有留言:

張貼留言