SSH连接Linux

拈花ヽ惹草 提交于 2020-02-07 07:57:19
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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!