Linux命令(124)之ssh

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.
[email protected]'s password: 
Last login: Thu Nov 16 08:49:50 2023
[root@logstash ~]# 

你可能感兴趣的:(Linux命令,linux,ssh,运维)