ssh原理介绍及xshell使用

远程连接工具

服务器上安装服务端程序:openssh-server

  

  systemctl status sshd      配置文件在 /etc/ssh/sshd_config

  systemctl restart sshd    

[root@localhost ~]# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since 六 2025-05-24 13:25:30 CST; 1 day 3h ago
     Docs: man:sshd(8)
           man:sshd_config(5)
 Main PID: 867 (sshd)
   CGroup: /system.slice/sshd.service
           └─867 /usr/sbin/sshd -D

5月 24 13:25:30 localhost.localdomain systemd[1]: Starting OpenSSH server daemon...
5月 24 13:25:30 localhost.localdomain sshd[867]: Server listening on 0.0.0.0 port 22.
5月 24 13:25:30 localhost.localdomain sshd[867]: Server listening on :: port 22.
5月 24 13:25:30 localhost.localdomain systemd[1]: Started OpenSSH server daemon.
5月 24 13:26:09 localhost.localdomain sshd[1212]: Accepted password for root from 192.168.1.38 port 88...sh2
5月 24 22:47:03 localhost.localdomain sshd[1908]: Accepted password for root from 192.168.1.38 port 12...sh2
Hint: Some lines were ellipsized, use -l to show in full.
View Code

  在个人电脑上安装一个ssh客户端程序

    ssh的客户端种类:

      Windows:

        xshell

        secureCRT

        putty

      mac:

        本身就自带ssh客户端

 

 

 

 

 

 

 

 

 

 

/etc/ssh/sshd_config和

 

posted @ 2025-05-25 17:27  张仁国  阅读(15)  评论(0)    收藏  举报
目录代码