I dont see the folder "app" in Github


#1

When it said “A message from Github stating, “The authenticity of host ‘github.com’…” may appear during this process. You can type yes and hit Enter to continue.After the terminal finishes its magic, return to your GitHub repository and refresh the page. You should see a lot of files, starting with a folder called “app”.” But i dont see it. But in the terminal it also says "gamartinez@gamartinez-VirtualBox:~/odin_on_rails/my_first_rails_app$ git push -u origin master
Warning: Permanently added the RSA host key for IP address ‘140.82.114.4’ to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists." Can somebody tell me what’s this and how to fix it.


#2

What’s the output of ssh -vT git@github.com in your terminal


#3

what do you mean?


#4

Open a new terminal and type the following command and let me know what the terminal says

ssh -vT git@github.com


#5

ok i’ll try


#6

ok it might be too long but this is what the terminal says
gamartinez@gamartinez-VirtualBox:~$ ssh -vT git@github.com
OpenSSH_8.0p1 Ubuntu-6build1, OpenSSL 1.1.1c 28 May 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to github.com [140.82.113.4] port 22.
debug1: Connection established.
debug1: identity file /home/gamartinez/.ssh/id_rsa type -1
debug1: identity file /home/gamartinez/.ssh/id_rsa-cert type -1
debug1: identity file /home/gamartinez/.ssh/id_dsa type -1
debug1: identity file /home/gamartinez/.ssh/id_dsa-cert type -1
debug1: identity file /home/gamartinez/.ssh/id_ecdsa type -1
debug1: identity file /home/gamartinez/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/gamartinez/.ssh/id_ed25519 type -1
debug1: identity file /home/gamartinez/.ssh/id_ed25519-cert type -1
debug1: identity file /home/gamartinez/.ssh/id_xmss type -1
debug1: identity file /home/gamartinez/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.0p1 Ubuntu-6build1
debug1: Remote protocol version 2.0, remote software version babeld-2e9d163d
debug1: no match: babeld-2e9d163d
debug1: Authenticating to github.com:22 as ‘git’
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
debug1: Host ‘github.com’ is known and matches the RSA host key.
debug1: Found key in /home/gamartinez/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/gamartinez/.ssh/id_rsa
debug1: Will attempt key: /home/gamartinez/.ssh/id_dsa
debug1: Will attempt key: /home/gamartinez/.ssh/id_ecdsa
debug1: Will attempt key: /home/gamartinez/.ssh/id_ed25519
debug1: Will attempt key: /home/gamartinez/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,rsa-sha2-512,rsa-sha2-256,ssh-dss>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/gamartinez/.ssh/id_rsa
debug1: Trying private key: /home/gamartinez/.ssh/id_dsa
debug1: Trying private key: /home/gamartinez/.ssh/id_ecdsa
debug1: Trying private key: /home/gamartinez/.ssh/id_ed25519
debug1: Trying private key: /home/gamartinez/.ssh/id_xmss
debug1: No more authentication methods to try.
git@github.com: Permission denied (publickey).
yep that it


#7

hello?


#8

Try running the following commands in your terminal

eval "$(ssh-agent -s)"
ssh-add

Then try again.


#9

when i typed "eval “$(ssh-agent -s)” it says “Agent pid 23978” what does that mean


#10

Yeah that’s fine

Type the next command.


#11

i typed ssh-add and shows nothing i guess


#12

Ok, now try

ssh -T git@github.com


#13

it says "git@github.com: Permission denied (publickey)."


#14

What OS are you using btw?


#15

Host=Windows 10
Guest=Xubuntu 19.10 (i dont want to use Xubuntu 18.04)


#16

What i am trying to say is that the “host” is my main operating system and the “Guest” is the one im using on virtual box


#17

Thanks.

Try a couple more things for me.

eval "$(ssh-agent -s)"
ssh-add -l

If you don’t see any output after that try

ssh-add -l -E md5

If you don’t see any output after that let me know.


#18

when i typed ssh-ad -1 and ssh-add -1 -E md5 it just showed me options. here’s the list. “gamartinez@gamartinez-VirtualBox:~$ ssh-add -1 -E md5
unknown option – 1
usage: ssh-add [options] [file …]
Options:
-l List fingerprints of all identities.
-E hash Specify hash algorithm used for fingerprints.
-L List public key parameters of all identities.
-k Load only keys and not certificates.
-c Require confirmation to sign using identities
-m minleft Maxsign is only changed if less than minleft are left (for XMSS)
-M maxsign Maximum number of signatures allowed (for XMSS)
-t life Set lifetime (in seconds) when adding identities.
-d Delete identity.
-D Delete all identities.
-x Lock agent.
-X Unlock agent.
-s pkcs11 Add keys from PKCS#11 provider.
-e pkcs11 Remove keys provided by PKCS#11 provider.
-T pubkey Test if ssh-agent can access matching private key.
-q Be quiet after a successful operation.
-v Be more verbose”
That’s what it says in the terminal


#19

It should be the letter L (lowercase) and not the number 1 after ssh-add


#20

oh ok i’ll type it again