ubuntu server 10.04 :使用ssh 密钥登录服务器
来源:互联网 发布:淘宝店会员制度 编辑:程序博客网 时间:2024/06/06 07:23
1、在客户端生成私钥:
sudo apt-get install ssh-client
ssh-keygen -t rsa # (ssh-keygen -t rsa -C "my key")
#生成密钥:包含公钥、私钥,存放在~/.ssh/ 下
#提示输入密钥加密口令,而不是登录服务器的密码
2、将公钥复制到服务器上
ssh-copy-id -i ~/.ssh/id_rsa.pub test@192.168.1.10
会提示要求你测试一下
输入 ssh test@192.168.1.10 会提示你输入密钥的加密口令,输入后即可登录远程服务器
配置ssh
配置文件在 /etc/init.d/sshd_config
1、更改端口 将22 更改为其他端口 更改后以后登录的格式为 ssh test@192.168.1.10 -p 端口号
2、禁用密码登录,仅允许密钥登录
PermitRootLogin no
PasswordAuthentication no
UsePAM no
然后重启 ssh :sudo /etc/init.d/ssh restart
其他:
1、修改密钥加密口令: ssh-keygen -p
2、限制scp占用的带宽: scp -l 256 test@192.168.1.10:/ . #256Kb/s
sudo apt-get install ssh-client
ssh-keygen -t rsa # (ssh-keygen -t rsa -C "my key")
#生成密钥:包含公钥、私钥,存放在~/.ssh/ 下
#提示输入密钥加密口令,而不是登录服务器的密码
2、将公钥复制到服务器上
ssh-copy-id -i ~/.ssh/id_rsa.pub test@192.168.1.10
会提示要求你测试一下
输入 ssh test@192.168.1.10 会提示你输入密钥的加密口令,输入后即可登录远程服务器
配置ssh
配置文件在 /etc/init.d/sshd_config
1、更改端口 将22 更改为其他端口 更改后以后登录的格式为 ssh test@192.168.1.10 -p 端口号
2、禁用密码登录,仅允许密钥登录
PermitRootLogin no
PasswordAuthentication no
UsePAM no
然后重启 ssh :sudo /etc/init.d/ssh restart
其他:
1、修改密钥加密口令: ssh-keygen -p
2、限制scp占用的带宽: scp -l 256 test@192.168.1.10:/ . #256Kb/s
0 0
- ubuntu server 10.04 :使用ssh 密钥登录服务器
- Ubuntu Server SSH服务器密钥验证
- SecureCRT使用密钥登录SSH服务器
- Ubuntu设置ssh密钥登录
- Ubuntu配置ssh密钥登录
- 有关无需密码使用密钥登录ssh服务器的知识
- 配置Linux服务器SSH远程密钥登录
- Xshell配置SSH密钥登录Linux服务器
- Xshell配置SSH密钥登录Linux服务器
- Xshell配置SSH密钥登录Linux服务器
- ubuntu设置 SSH 通过密钥登录
- ubuntu服务器下git ssh 密钥 配置
- putty 使用密钥自动登录 ssh
- ssh 无密码登录(使用密钥)
- putty 使用密钥自动登录 ssh
- 使用密钥ssh登录到主机
- 使用SSH密钥登录Linux VPS主机
- 服务器间通过ssh使用密钥对实现无密码登录solaris,redhat,linux
- android代码混淆之Gson解析为null
- ubuntu server 10.04 NFS设置
- [摘录] ubuntu server 10.04 安装dhcp服务器
- 相关认识
- Fiddler 教程
- ubuntu server 10.04 :使用ssh 密钥登录服务器
- ubuntu server 10.04:apache1:安装ssl
- ubuntu server 10.04 apache2:安装webalizer、awstats
- ubuntuserver10.04 安装LAMP:PHP及配置drupal
- 硬件raid和软件raid说明、设置及维护
- 使用ophcrach破解windows密码
- ubuntu10.04 安装ralink rt2870
- [转载]百万级访问网站前期的技术准备
- ubuntu10.04 安装ralink rt2870