我的同事和我一直试图让我的macbook ssh进入我们的AWS生产服务器而没有运气,这在几个月前确实有效,但是当我们昨天去做时 - 我们不断收到以下错误消息.
(我在以下所有部分用占位符替换了我的用户名和主机名)
$ ssh titan-data
Load key "/Users/aronlilland/.ssh/id_rsa.pub": invalid format
user@my_ip_address: Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)
<!-- config file -->
Host titan-data
HostName my_ip_address
User user
IdentityFile ~/.ssh/id_rsa.pub
AddKeysToAgent yes
Run Code Online (Sandbox Code Playgroud)
我已经完成了可以想象的每一步,让它再次运行,这些是我按顺序完成的以下步骤:
这一步重复了几次,我通过这个消除过程重新生成了我的.pub文件4次.错误似乎是本地的,但不是来自服务器的东西,如果我错了,有人需要纠正我.
drwx------ 6 aronlilland staff 192B Jan 18 09:41 .ssh/
Run Code Online (Sandbox Code Playgroud)
drwx------ 6 aronlilland staff 192B Jan 18 09:41 ./
drwxr-xr-x+ 104 aronlilland staff 3.3K Jan 16 16:09 ../
-rw-r--r-- 1 aronlilland staff 114B Jan 18 09:37 config
-rw------- 1 aronlilland staff 1.7K Jan 18 09:41 …
Run Code Online (Sandbox Code Playgroud) 我有两个Gitlab帐户.在我的旧帐户中,我添加了一个位于我的计算机上的ssh密钥~/.ssh/id_rsa.pub
.
现在我想为我的新Gitlab帐户添加另一个ssh-key.如果没有ssh-keys冲突,我该怎么做?
我现在使用dokku与数字海洋一段时间没有任何问题
现在使用以下命令部署到dokku时遇到问题:
git remote add dokku dokku@some-ip:myapp
git push dokku develop:master
Run Code Online (Sandbox Code Playgroud)
我有以下问题:
Counting objects: 528, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (509/509), done.
packet_write_wait: Connection to some-ip port 22: Broken pipe
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'dokku@some-ip:myapp'
Run Code Online (Sandbox Code Playgroud)
我试试
ServerAliveInterval
为ssh客户端设置git config http.postBuffer 209715200
/git config ssh.postBuffer 209715200
但它不起作用.我认为这是因为要推送的内容的大小有点高......
谢谢你的帮助!
更新
设置postBuffer
值的选项后209715200
,我收到以下错误:
Counting objects: 528, done.
Delta compression using up to …
Run Code Online (Sandbox Code Playgroud) 我正在尝试配置另一个GitHub帐户以能够在我的机器上工作。我开始环顾四周,发现:
通过创建/修改〜/ .ssh / config来设置多个ssh配置文件。注意“主机”值略有不同:
因此,由于我(已经)有多个帐户在工作(我不记得我是怎么做的以及何时做的),所以我想在中添加另一个条目~/.ssh/config
。但是看来我没有这样的文件。也许它位于其他地方?还是我的机器以其他方式配置?从哪里开始搜索?