usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-E log_file] [-e escape_char]
[-F configfile] [-I pkcs11] [-i identity_file]
[-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]
一般的用法
ssh userName@IP
# 例如ssh root@192.168.1.1
ssh IP -l userName
# 例如ssh 192.168.1.1 -l root
默认连接为22端口,可以在后面 -p 指定端口
默认用户就是linux上登录的用户
断开ssh连接命令
# 下面任一
Ctrl + D
logout
来源:CSDN
作者:Louzen
链接:https://blog.csdn.net/Louzen/article/details/103585682