美文网首页
Mac 终端用ssh连接到google cloud

Mac 终端用ssh连接到google cloud

作者: zvl | 来源:发表于2019-01-14 15:43 被阅读34次

1.生成密钥

打开终端,输入ssh-keygen -t rsa -f (密钥路径) -C (用户名)

2.设置config

在~/.ssh/文件夹下,创建config文件,加入以下配置:

Host (服务器地址)
User (用户名)
IdentityFile (密钥路径)

3.配置终端

1.打开终端
2.导航栏选择shell
3.新建远程连接
4.安全shell(ssh)
5.服务器栏点“+”添加服务器
6.填写用户名
7.点击连接,连接google cloud

相关文章

网友评论

      本文标题:Mac 终端用ssh连接到google cloud

      本文链接:https://www.haomeiwen.com/subject/yixjdqtx.html