linux命令之ssh
1.ssh介绍
linux命令ssh是linux客户端连接工具,用来登录linux
2.ssh用法
ssh [参数] 选项
ssh常用参数
参数 说明
-p 指定远程服务器上的端口
-l 指定连接远程服务器的登录用户名
3.实例
3.1.通过指定端口和用户名连接远程服务器
命令:
ssh -l root 192.168.10.244 -p 22
[root@rhel77 log]# ssh -l root 192.168.10.244 -p 22
The authenticity of host '192.168.10.244 (192.168.10.244)' can't be established.
ECDSA key fingerprint is SHA256:EADmS0F6cqxJ00yk8pc9FgPizA/kfgBDdJTOnzrLX6Q.
ECDSA key fingerprint is MD5:33:23:05:13:40:23:ad:ae:39:9d:5a:cb:cb:b9:e1:1b.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.10.244' (ECDSA) to the list of known hosts.
root@192.168.10.244's password:
Last login: Thu Nov 16 08:49:50 2023
————————————————
版权声明:本文为CSDN博主「小黑要上天」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/z19861216/article/details/134433423