mac 使用终端登录linux服务器

配置支持本地key转发

1、vi .bash_profile

## add bellow line at the end, replace string "full_path_to_your_home" with your real path.

ssh-add /Users/yzl/.ssh/id_rsa

 

2、vi .ssh/config

Host *

    ForwardAgent yes

 

3、source bash_profile

相关推荐