Затем публичный ключ добавляю в аккаунт. Различные попытки предпринял, но с гитхабом всегда ошибка:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
С битбакетом проблемы не было такой, что делаю не так?
Алексей Тен, You've successfully authenticated, but GitHub does not provide shell access.
debug2: channel 0: written 97 to efd 7
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
Connection to github.com closed.
Transferred: sent 3644, received 2284 bytes, in 0.3 seconds
Bytes per second: sent 12657.0, received 7933.2
debug1: Exit status 1
А просто "ssh github.com" нормально отрабатывает? Показывает что-то типа "Hi lorc! You've successfully authenticated, but GitHub does not provide shell access." ?
Если нет - значит все-таки неправильно добавили ключ.
Если да - значит надо смотреть настройки доступа к репозиторию.