SSH подключение к github на хостинге. Ошибка github.com port 777: Connection timed out
Раньше выгружал изменения с github репозитория на хостинг Макхост путем https (вводил пароль и логин). Теперь необходимо перейти на .ssh. Я создал .ssh ключ по инструкции, добавил новый ключ в настройках github, заменил ссылку командой >git remote set-url origin <SSH url>.
Проверяю подключение ssh -T [email protected], но выводит ошибку ssh: connect to host github.com port 777: Connection timed out
При поиске решения, нашел вопрос на stackoverflow. Cоздал и добавил в файл ~/.ssh/config следующее:
Host github.com
User git
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/github-key
Port 443
Но это не решило проблемы.
Запустил ssh -vvv -T [email protected]. Результат:
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to github.com [140.82.121.4] port 777.
debug1: connect to address 140.82.121.4 port 777: Connection timed out
ssh: connect to host github.com port 777: Connection timed out
Запустил ssh -vvv -T -p 443 [email protected]. Результат:
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to github.com [140.82.121.4] port 443.
debug1: Connection established.
debug1: identity file /home/domen.ru/.ssh/identity type -1
debug1: identity file /home/domen.ru/.ssh/identity-cert type -1
debug1: identity file /home/domen.ru/.ssh/id_rsa type -1
debug1: identity file /home/domen.ru/.ssh/id_rsa-cert type -1
debug1: identity file /home/domen.ru/.ssh/id_dsa type -1
debug1: identity file /home/domen.ru/.ssh/id_dsa-cert type -1
debug1: identity file /home/domen.ru/.ssh/id_ecdsa type -1
debug1: identity file /home/domen.ru/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
Команда grep 777 /etc/ssh/*config ~/.ssh/config Результат:
/etc/ssh/ssh_config: Port 777
Команда ssh -p 22 -i ~/.ssh/github-key [email protected] Результат:
PTY allocation request failed on channel 0
Hi login! You've successfully authenticated, but GitHub does not provide shell access.
Вроде как соединение установлено, но как выполнять git команды?