OpenSSH 軟件包
libssh-4
openssh-client
openssh-server
openssh-sftp-server
ssh-import-id
OpenSSH 命令
- ssh(1) - The basic rlogin/rsh-like client program
SSH協議的客戶端程序,用來登入遠程系統或遠程執行命令(slogin) sshd(8) - The daemon that permits you to log in
SSH服務端程序ssh_config(5) - The client configuration file
sshd_config(5) - The daemon configuration file
客戶端和服務器的配置文件的定義ssh-agent(1) - An authentication agent that can store private keys
ssh代理程序ssh-add(1) - Tool which adds keys to in the above agent
SSH代理相關程序,用來向SSH代理添加dsa keysftp(1) - FTP-like program that works over SSH1 and SSH2 protocol
交互式sftp-server客戶端,用法和ftp命令一樣。- scp(1) - File copy program that acts like rcp
非交互式sftp-server的客戶端,用來向服務器上傳/下載文件 sftp-server(8) - SFTP server subsystem (started automatically by sshd)
SFTP服務端程序(類似FTP但提供數據加密的一種協議)ssh-keygen(1) - Key generation tool
- ssh-keyscan(1) - Utility for gathering public host keys from a number of hosts
- ssh-keysign(8) - Helper program for host-based authentication
ssh public key 生成器
OpenSSH 登錄方式
Password
用戶名密碼登錄Publickey
公鑰/私鑰登錄Keybord Interactive
GSSAPI
相關文件
.ssh目錄的權限必須是700
服務器中
~/.ssh/known_hosts
存放ssh指紋,已識別的服務器
~/.ssh/authorized_keys
存放各客戶端的公鑰,即可以把各個*.pub文件中的內容添加到此文件
客戶端中
~/.ssh/id_dsa
存放客戶端的私鑰
私鑰必須是600權限
日誌文件
/var/log/secure