Skip to content

Instantly share code, notes, and snippets.

@r17x
Last active March 4, 2019 08:45
Show Gist options
  • Select an option

  • Save r17x/d31d400495d6479d831818cbb5b91fc9 to your computer and use it in GitHub Desktop.

Select an option

Save r17x/d31d400495d6479d831818cbb5b91fc9 to your computer and use it in GitHub Desktop.

4 March 2019

Github Connect by Default use port 22;

// Checking

$ ssh -vT [email protected]

// output
// debug1: Reading configuration data /etc/ssh/ssh_config
// debug1: /etc/ssh/ssh_config line 48: Applying options for *
// debug1: Connecting to github.com port 22.
// debug1: Connection established.

// use 443 / SSL

$ ssh -T -p 443 [email protected]
> Hi username! You've successfully authenticated, but GitHub does not
> provide shell access.

Set 443 for Github Connection.

$ cat <<EOF >> ~/.ssh/config
Host github.com
  Hostname ssh.github.com
  Port 443
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment