You are not logged in.

#1 2022-11-18 10:56:58

Freed
Member
From: China
Registered: 2020-02-01
Posts: 27
Website

Cannot ssh github and aur

In my desktop, I can ssh localhost and my mobile, and can ssh github over https, but I cannot ssh github and aur.

And I can ssh github and aur from my mobile.

❯ ssh github.com
kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22
❯ ssh aur.archlinux.org
kex_exchange_identification: Connection closed by remote host
Connection closed by 2a01:4f9:c010:50::1 port 22
❯ ssh ssh.github.com
Warning: Permanently added '[ssh.github.com]:443' (ED25519) to the list of known hosts.
PTY allocation request failed on channel 0
Hi Freed-Wu! You've successfully authenticated, but GitHub does not provide shell access.
Connection to ssh.github.com closed.
❯ ssh localhost hello
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
Hello, world!
❯ ssh mobile hello
Hello, world!

This is

~/.ssh/config
StrictHostKeyChecking no

Host github.com
  User git

# https://docs.github.com/cn/authentication/troubleshooting-ssh/using-ssh-over-the-https-port
Host ssh.github.com
  User git
  Port 443

Host aur.archlinux.org
  User aur

Host localhost
  UserKnownHostsFile /dev/null

Host mobile 192.168.43.1
  HostName 192.168.43.1
  User wzy
  UserKnownHostsFile /dev/null
  Port 8022

According to https://docs.github.com/cn/authenticati … https-port

firewalls refuse to allow SSH connections entirely.

How to allow ssh connections in firewalls? TIA!


An adherent of hacker culture and open source.

Offline

#2 2022-11-18 16:43:54

ThatGuy64
Member
Registered: 2022-11-18
Posts: 5

Re: Cannot ssh github and aur

Why are you trying to ssh into github? You don't remote accsess into github's servers, you use git clone.

Offline

#3 2022-11-18 16:59:30

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 284

Re: Cannot ssh github and aur

You don't have shell access to GitHub and AUR. What's your intent?

Offline

Board footer

Powered by FluxBB