Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | About

第 43 章 OpenSSH

目錄

43.1. 安裝 OpenSSH
43.2. /etc/ssh/
43.2.1. sshd_config
43.2.1.1. Authentication 配置
43.2.1.2. Automatic SSH / SSH without password
43.2.1.3. disable password authentication
43.2.1.4. GSSAPI options
43.2.1.5. 忽略known_hosts檔案
43.2.1.6. UseDNS no
43.2.2. ssh_config
43.2.2.1. ForwardAgent
43.2.3. ~/.ssh/config
43.3. ssh client
43.3.1. -o option 參數詳解
43.4. OpenSSH Tunnel
43.4.1. SOCKS v5 Tunnel
43.5. ssh-keygen — authentication key generation, management and conversion
43.5.1. .ssh/known_hosts
43.6. ssh-keyscan
43.7. ssh-copy-id - install your public key in a remote machine's authorized_keys
43.8. ssh-agent
43.8.1. ssh-add
43.8.2. Lock / Unlock agent
43.8.3. Set lifetime (in seconds) when adding identities.
43.9. OpenSSH for Windows
43.9.1. Putty Client
43.10. Google Authenticator - Android Apps on Google Play
43.11. FAQ
43.11.1. Pseudo-terminal will not be allocated because stdin is not a terminal.
43.11.2. 去掉 passphrase
43.11.3. 打印調試信息

ssh 連接過程

(1)遠程主機收到用戶的登錄請求,把自己的公鑰發給用戶.
(2)用戶使用這個公鑰,將登錄密碼加密後,發送回來.
(3)遠程主機用自己的私鑰,解密登錄密碼,如果密碼正確,就同意用戶登錄.	
	

43.1. 安裝 OpenSSH

使用下面命令安裝OpenSSH

sudo apt-get install ssh