首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >推送源站后GitHub和终端的SSH问题

推送源站后GitHub和终端的SSH问题
EN

Stack Overflow用户
提问于 2020-10-20 01:41:49
回答 1查看 60关注 0票数 1

我坚持使用after语句“无法获取引用控制台的文件描述符”。我不能再继续下去了。在这个问题上我需要你的帮助。我是一个新的网页开发人员,并继续学习以提高我的技能。感谢您抽出时间给我指引正确的方向。

代码语言:javascript
复制
[ENV]:/vagrant/src/splurty $ git push origin master
    
ssh: connect to host github.com port 22: Connection refused
    fatal: Could not read from remote repository.
    
    
Please make sure you have the correct access rights
    and the repository exists.
    
[ENV]:/vagrant/src/splurty $ git remote set-url origin https://github.com/livestronger08/brolin.git
    
[ENV]:/vagrant/src/splurty $ eval "$(ssh-agent -s)"
    Agent pid 30162
    
[ENV]:/vagrant/src/splurty $ ssh-add
    Identity added: /home/vagrant/.ssh/id_rsa (/home/vagrant/.ssh/id_rsa)
    
[ENV]:/vagrant/src/splurty $ $ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
    $: command not found
    
[ENV]:/vagrant/src/splurty $ ssh-keygen -t rsa -b 4096 -C "derek.downie@ttu.edu"
    
Generating public/private rsa key pair.
    
Enter file in which to save the key (/home/vagrant/.ssh/id_rsa): 
    /home/vagrant/.ssh/id_rsa already exists.
    
Overwrite (y/n)? y
    
Enter passphrase (empty for no passphrase): 
    
Enter same passphrase again: 
    
Passphrases do not match.  Try again.
    
Enter passphrase (empty for no passphrase): 
    
Enter same passphrase again: 
    
Your identification has been saved in /home/vagrant/.ssh/id_rsa.
    
Your public key has been saved in /home/vagrant/.ssh/id_rsa.pub.
    
The key fingerprint is:
    72:98:32:bc:e7:b1:05:0e:c6:99:17:3d:a0:00:6a:63 derek.downie@ttu.edu
    
The key's randomart image is:
    +--[ RSA 4096]----+
    |...   .          |
    |.  . . o         |
    |.E  . . o        |
    |o .o o + .       |
    |    X * S        |
    |   . B +         |
    |    . + .        |
    |     o +         |
    |      o          |
    +-----------------+
    
[ENV]:/vagrant/src/splurty $ eval 
    
[ENV]:/vagrant/src/splurty $ eval "$(ssh-agent -s)"
    Agent pid 30176
    
[ENV]:/vagrant/src/splurty $ open ~/.ssh/config
    Couldn't get a file descriptor referring to the console
    
[ENV]:/vagrant/src/splurty $ touch ~/.ssh/config
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-10-20 09:25:14

从您将远程存储库URL (使用git remote set-url origin https://github.com/livestronger08/brolin.git)设置为HTTPS的那一刻起,每隔一个与SSH相关的命令就不会对身份验证产生影响。

仅当您在创建SSH密钥时输入了非空的密码短语时,才需要代理。

只有当您的SSH不是默认的~/.ssh/id_rsa名称时,才需要~/.ssh/config文件。在您的情况下,您不需要它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64432585

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档