ssh远程管理&秘钥对验证

1、远程链接vim

1.ssh远程登陆安全

ssh root@192.168.100.10ssh

image

2.ssh远程复制ide

scp root@192.168.100.10:/etc/passwd /opt/123.txt3d

image

3.sftp安全ftpblog

sftp root@192.168.100.10get

image

image

2、构建秘钥对验证it

1.vim /etc/ssh/sshd_configio

PubkeyAuthentication yes           //启用密钥对验证
AuthorizedKeysFile      .ssh/authorized_keys    //指定公钥库数据文件class

2.生成李四用户的秘钥

image

image

3.将公钥拷贝至须要远程登陆用户zhangsan的家目录下

image

4.密钥登陆

image

相关文章
相关标签/搜索