bryanbocao / awesome-cmd-cheatsheets

Quick search the commands you need.
3 stars 1 forks source link

ssh: connect to host <IP> port 22: Connection refused #16

Closed bryanbocao closed 1 year ago

bryanbocao commented 1 year ago

Uncomment or append the line

Port 22

In the server:

sudo vim /etc/ssh/sshd_config
Azzzzzz-7 commented 4 months ago

ssh: connect to host github.com port 22: Connection refused Please help me!Thank you vrey much! ![Uploading 4d5baf0a6f8b94c600a6b685260633a.png…]() ![Uploading 8d1004018365cc62999bdd2bc7e0b13.png…]()

bryanbocao commented 4 months ago

@Az333333 Sorry, the image does not show up. It looks like you are trying to ssh to github.com. Can you tell us the specific things you did?

Azzzzzz-7 commented 3 months ago

老师,我看了您的简历,所以我就用汉语了。我是在使用ssh公钥连接github时,一直连接不上。后来,我得知是我的ip问题,我换了梯子之后,问题就得到了解决。非常感谢您能回复我。

bryanbocao commented 3 months ago

老师,我看了您的简历,所以我就用汉语了。我是在使用ssh公钥连接github时,一直连接不上。后来,我得知是我的ip问题,我换了梯子之后,问题就得到了解决。非常感谢您能回复我。

@Azzzzzz-7 好的。