windows系统远程连接linux系统
- win+R打开命令窗口,输入ssh linux系统用户名@linux系统IP
C:\Users\PC>ssh root@192.168.146.129
- 输入密码,这里输入时密码不会显示,注意输入时中英文的切换
root@192.168.146.129's password:
- 登录成功
C:\Users\PC>ssh root@192.168.146.129
root@192.168.146.129's password:
Last login: Sat Oct 12 15:13:00 2019 from 192.168.146.1
[root@localhost ~]#
如果想上传/下载文件win+R打开命令行
- 下载到windows
C:\Users\PC>scp root@192.168.146.129:/etc/ssh/sshd_config D:/
root@192.168.146.129's password:
sshd_config 100% 3906 963.5KB/s 00:00
- 上传到linux
C:\Users\PC>scp D:/20190518RTDB_HT.bak root@192.168.146.129:/
root@192.168.146.129's password:
20190518RTDB_HT.bak 100% 72MB 35.3MB/s 00:02
上传整个文件夹
scp 后加-r
C:\Users\PC>scp -r D:\apache-tomcat-8.5.41 root@192.168.146.129:/