Ubuntu: ssh-keygen
来源:互联网 发布:mac艺术字体下载大全 编辑:程序博客网 时间:2024/06/01 17:34
Install openssh-client first
sudo apt-get install openssh-client
Suppose
Computer A(192.168.1.111), Computer B(192.168.1.123)
Login Computer A
ssh-keygen -t [rsa|dsa]
this will generate: id_rsa, id_rsa.pub or id_dsa, id_dsa.pub
Copy the generated .pub to .ssh directory in Computer B
cat id_dsa.pub >> ~/.ssh/authorized_keys
or
cat id_rsa.pub >> ~/.ssh/authorized_keys
We can connect to Computer B in Computer A without password
ssh 192.168.1.123
Examples of ssh commands
ssh remote@192.168.1.120ssh -i ~/.ssh/id_rsa david@abc.xyz.comssh -i ~/.ssh/id_dsa sam@50.17.138.101 -o ServerAliveInterval=60 (Solve Broken pipe problem:-o ServerAliveInterval=60)
Examples of scp commands
scp -r to-remote remote@192.168.1.120:~/to-remote (copy directory)sudo scp -i ~/.ssh/id_rsa app.zip david@abc.xyz.com:~/app.zip (copy .zip package)
0 0
- Ubuntu: ssh-keygen
- ssh-keygen
- ssh-keygen
- ssh-keygen
- ssh-keygen
- ssh-keygen
- ssh-keygen
- ssh-keygen
- ssh-keygen的问题
- ssh keygen 免輸入密碼
- ssh-keygen 中文手册
- ssh keygen 免輸入密碼
- ssh-keygen的使用方法
- ssh keygen – 登入免密碼
- ssh-keygen 双机互访
- ssh-keygen 的 详解
- ssh-keygen的使用方法
- ssh-keygen的使用方法
- C++基础学习(03AM)
- 如何反编译Android程序
- Oracle 调优工具(SQL Trace)
- Android 读取assets文件下的txt文件
- 流媒体技术之复习网络协议
- Ubuntu: ssh-keygen
- Deformable Parts Model (DPM) 检测加速算法简介
- Java 多线程详解
- 正则表达式初级使用
- 连接池详解
- Android数据库 之 SQLite数据库
- 内存那些事(一)
- Object-c:Property Attributes && Variable life time Qualifiers
- HTTP常见错误返回代码