xshell 使用密钥验证远程登录linux
2015-03-10 22:55
330 查看
使用xshell做密钥验证远程登录linux:
我这里用的工具:xshell 5 及 centos 6.5
首先在工具栏选择新建用户密钥生成向导,进行密钥对生成操作
下一步
生成公钥对,下一步
这里也可以直接点“完成”,这里选“下一步”(原因看下一张图)
选中公钥复制,保留,或者保存为文件,后面要用到
在服务器端,保存公钥到服务器,修改相关文件
[root@localhost ~]# mkdir .ssh
[root@localhost ~]# vim .ssh/authorized_keys 将复制的公钥粘贴到此文件
修改权限
[root@localhost ~]# chmod 600 .ssh/authorized_keys
[root@localhost ~]# chmod 700 .ssh
关闭selinux
[root@localhost ~]# setenforce 0 临时修改
[root@localhost ~]# vim /etc/selinux/config
[root@localhost ~]# iptables -F 清空iptables
[root@localhost ~]# service iptables save
设置启用密钥登录
[root@localhost ~]# vim /etc/ssh/sshd_config
[root@localhost ~]# service sshd restart 重启sshd
至此,设置xshell使用密钥登录
我这里用的工具:xshell 5 及 centos 6.5
首先在工具栏选择新建用户密钥生成向导,进行密钥对生成操作
下一步
生成公钥对,下一步
这里也可以直接点“完成”,这里选“下一步”(原因看下一张图)
选中公钥复制,保留,或者保存为文件,后面要用到
在服务器端,保存公钥到服务器,修改相关文件
[root@localhost ~]# mkdir .ssh
[root@localhost ~]# vim .ssh/authorized_keys 将复制的公钥粘贴到此文件
修改权限
[root@localhost ~]# chmod 600 .ssh/authorized_keys
[root@localhost ~]# chmod 700 .ssh
关闭selinux
[root@localhost ~]# setenforce 0 临时修改
[root@localhost ~]# vim /etc/selinux/config
[root@localhost ~]# iptables -F 清空iptables
[root@localhost ~]# service iptables save
设置启用密钥登录
[root@localhost ~]# vim /etc/ssh/sshd_config
[root@localhost ~]# service sshd restart 重启sshd
至此,设置xshell使用密钥登录
相关文章推荐
- 国产优化Linux系统Deepin15.3使用samba配合Xshell5.0搭建在Windows7端SSH远程登录与网络映射驱动器
- windows下使用密钥登录Linux及xshell代理转发
- 使用Xshell密钥认证远程登录linux
- CentOS6.x 用Putty使用密钥验证方式远程登录
- 使用Xshell密钥认证机制远程登录Linux
- 使用puTTY和Xshell连接Linux和使用密钥验证
- Xshell使用密钥认证机制远程登录Linux
- Xshell/Secure CRT/PuTTY使用密钥对登录阿里云Linux服务器
- sublime Text SFTP使用密钥远程登录Linux 上传文件
- Putty、Xshell密钥验证登录Linux
- 配置使用密钥远程登录linux服务器(本地Xshell生成密钥,上传至服务器)
- Linux 远程连接工具使用-putty 密钥验证
- Xshell利用密钥远程登录Linux
- Putty 使用密钥远程登录到linux
- SecureCRT-转换密钥-Xshell-配置服务-使用xshell登录远程linux服务器
- 使用密钥验证方式登录linux系统
- 【Linux使用技巧】VNC远程登录Linux的安装和配置
- 使用SSH客户端远程登录Linux主机(可替代samba、ftp服务)
- Linux入门:使用Telnet远程登录Linux
- 使用public/private key让putty(ssh)自动登录(以及linux上使用密钥做ssh自动登陆)