Virink's Blog logo

Virink's Blog

Let life be beautiful like summer flowers, and death like autume leaves.

 Make ssh client For Mac OS X

Install openssh and ssh-copy-id

brew install

Create SSH Key

cd ~/.ssh/
ssh-keygen -t rsa

Copy to your server

ssh-copy-id [-p port] username@hostname
then enter your server' password

Configure

vim ~/.ssh/config

Host alias-name
HostName hostname
Port post
User username
IdentitiesOnly yes

Set alias command

vim .zshrc

alias sshl='cat ~/.ssh/config | grep "Host "'

Finish

You can list the ssh servers by `sshl`
then connect your server by `ssh alias-name`

Enjoy yourself!
本文标题 : Make ssh client For Mac OS X
文章作者 : Virink
发布时间 :  
最后更新 :  
本文链接 : https://www.virzz.com/2016/11/28/make_ssh_client_for_mac_osx.html
转载声明 : 转载请保留原文链接及作者。
转载说明 : 本卡片有模板生成,本人转载来的文章请忽略~~