visual studio code - why error connecting to github from powershell command line? -


first time using github.
created repository on github.com. want push repository. getting "connection failed" error.

when run "ssh -tv git@github.com" "connection timed out".
, "ssh -t -p 443 git@ssh.github.com" fails with: permission denied.

i turned off windows firewall. same error.

what do? how connect github?
using vscode. working powershell command line.

here commands tried:

    ps c:\gitsteve\maker> ssh -tv git@github.com openssh_7.1p2, openssl 1.0.2g  1 mar 2016 debug1: reading configuration data /etc/ssh/ssh_config debug1: connecting github.com [192.30.255.112] port 22. debug1: connect address 192.30.255.112 port 22: connection timed out debug1: connecting github.com [192.30.255.113] port 22. debug1: connect address 192.30.255.113 port 22: connection timed out ssh: connect host github.com port 22: connection timed out  ps c:\gitsteve\maker> git push -u origin master ssh: connect host github.com port 22: connection timed out fatal: not read remote repository.  please make sure have correct access rights , repository exists.  ps c:\gitsteve\maker> ssh -t -p 443 git@ssh.github.com authenticity of host '[ssh.github.com]:443 ([192.30.253.123]:443)' can't established. rsa key fingerprint sha256:nthbg6kxupjwgl7e1igocspromtxdcarlvikw6e5sy8. sure want continue connecting (yes/no)? yes warning: permanently added '[ssh.github.com]:443,[192.30.253.123]:443' (rsa) list of known hosts. permission denied (publickey).  ps c:\gitsteve\maker> ssh-add -l not open connection authentication agent.  ps c:\gitsteve\maker> ssh -t -p 443 git@ssh.github.com warning: permanently added rsa host key ip address '[192.30.253.122]:443' list of known hosts. permission denied (publickey).  please make sure have correct access rights , repository exists.  ps c:\gitsteve\maker> ssh-agent -s ssh_auth_sock=/tmp/ssh-w7z0jbkensbz/agent.14164; export ssh_auth_sock; ssh_agent_pid=14148; export ssh_agent_pid; echo agent pid 14148;  ps c:\gitsteve\maker> ssh-add -l -e md5 not open connection authentication agent.  ps c:\gitsteve\maker> ssh -t -p 443 git@ssh.github.com permission denied (publickey). 

if ssh blocked reason, try , switch https url

 cd /path/to/repo  git remote set-url origin https://github.com/<username>/<reponame>.git 

then try again

 git push -u origin master 

then first time, should require github username/password (which has nothing passphrase might have set on private ssh key: needs github account password)

if have installed git credential helper (as in answer), github credentials cached (meaning vscode won't ask again username/password @ next push)
check first value of git config credential.helper: if see manager, have nothing do.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -