示例:
dpkg -l | grep ssh
#默认安装 openssh-client
vim /etc/ssh/sshd_config
PermitRootLogin yes
开启 root 用户远程连接权限
systemctl restart sshd
ssh 192.168.200.202
测试,不加用户名默认你当前什么身份连的以什么身份链接
ssh root@192.168.200.202
touch /tmp/uosfile
scp /tmp/uosfile 192.168.200.202:/root/Desktop/qintest
scp -r 192.168.200.202:/home /tmp/
https://xpanx.com/
评论