ssh private key
来源:互联网 发布:wubi安装ubuntu 编辑:程序博客网 时间:2024/05/02 03:04
login server without password
generate key (on my own computer)
ssh-genkey -t rsa -f rsa_name
(have to change the name of key, otherwise it will override the old one)put the public key to the server
For example, the keys are called id_rsa_xx(private key) and id_rsa_xx.pub(public key)scp id_rsa_xx.pub server
cd /server/.ssh
cat id_rsa_xx.pub >> ~/.ssh/authorized_keys (if not, rename it to authorized_keys)If there are multiple private keys in our own computer, modify ~/.ssh/config
vim config
Host servername
User username
IdentityFile ~/.ssh/id_rsa_xxMake sure ~/.ssh dir and ~/.ssh/authorized_keys on the remote machine must be writable only by you ( ref ). 700 or 755, but not 775
It works now
- ssh private key
- SourcTree导入ssh private key
- 完美解决窃取ssh private key问题
- Mac terminal 使用 private key ssh
- 使用public/private key让putty(ssh)自动登录
- Linux Server Deployment(IV)SSH private/public key
- Linux上强制SSH工具使用指定的private key
- 使用public/private key让putty(ssh)自动登录
- Unable to use key file "xxx" (OpenSSH SSH-2 private key)
- git Couldn't load this key (OpenSSH SSH-2 private key)
- 如何在linux/ubuntu上管理多份ssh私钥private key
- How To Use Putty with an SSH Private Key Generated by OpenSSH
- windows 安装laravel homestead后,卡在SSH auth method: private key
- Create an SSH public and private key pair for Linux VMs (转载)
- IOS Missing private key
- Xshell配置ssh免密码登录-密钥公钥(Public key)与私钥(Private Key)登录
- Xshell配置ssh免密码登录-密钥公钥(Public key)与私钥(Private Key)登录
- Xshell配置ssh免密码登录-密钥公钥(Public key)与私钥(Private Key)登录
- 《JAVA与模式》之策略模式
- Linux网络编程——网络协议入门
- [Leetcode] 57. Insert Interval
- 《JAVA与模式》之模板方法模式
- 安卓浏览器网页播放视频时后台声音不停止
- ssh private key
- ios-day15-05(Quartz 2D之一张图片以平铺或者填充的方式设置为UIView的背景、以填充的方式为UIView设置条纹背景)
- [Leetcode] 58. Length of Last Word
- 《JAVA与模式》之观察者模式
- android webkit HTML5 video研究
- 存储过程、函数、触发器
- 《JAVA与模式》之迭代子模式
- redis配置文件详解
- Hadoop中两表JOIN的处理方法