Skip to content

Instantly share code, notes, and snippets.

@whowantstolivefo
Created February 1, 2013 14:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save whowantstolivefo/4691801 to your computer and use it in GitHub Desktop.
aslan@ubuntu:~/workspace/rails_project/sample_app$ ssh-add
Enter passphrase for /home/aslan/.ssh/id_rsa:
Identity added: /home/aslan/.ssh/id_rsa (/home/aslan/.ssh/id_rsa)
aslan@ubuntu:~/workspace/rails_project/sample_app$ ssh-add
Enter passphrase for /home/aslan/.ssh/id_rsa:
Identity added: /home/aslan/.ssh/id_rsa (/home/aslan/.ssh/id_rsa)
aslan@ubuntu:~/workspace/rails_project/sample_app$ ssh -vT
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-I pkcs11] [-i identity_file]
[-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]
aslan@ubuntu:~/workspace/rails_project/sample_app$ ssh -vT git@github.com
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /home/aslan/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/aslan/.ssh/id_rsa-cert type -1
debug1: identity file /home/aslan/.ssh/id_dsa type -1
debug1: identity file /home/aslan/.ssh/id_dsa-cert type -1
debug1: identity file /home/aslan/.ssh/id_ecdsa type -1
debug1: identity file /home/aslan/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze1+github8
debug1: match: OpenSSH_5.5p1 Debian-6+squeeze1+github8 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
debug1: Host 'github.com' is known and matches the RSA host key.
debug1: Found key in /home/aslan/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/aslan/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to github.com ([207.97.227.239]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Remote: Forced command: gerve whowantstolivefo 0e:58:bb:6e:97:9f:fb:aa:b2:47:80:e7:9d:51:95:2c
debug1: Remote: Port forwarding disabled.
debug1: Remote: X11 forwarding disabled.
debug1: Remote: Agent forwarding disabled.
debug1: Remote: Pty allocation disabled.
debug1: Remote: Forced command: gerve whowantstolivefo 0e:58:bb:6e:97:9f:fb:aa:b2:47:80:e7:9d:51:95:2c
debug1: Remote: Port forwarding disabled.
debug1: Remote: X11 forwarding disabled.
debug1: Remote: Agent forwarding disabled.
debug1: Remote: Pty allocation disabled.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Hi whowantstolivefo! You've successfully authenticated, but GitHub does not provide shell access.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2752, received 2984 bytes, in 0.7 seconds
Bytes per second: sent 3921.5, received 4252.1
debug1: Exit status 1
aslan@ubuntu:~/workspace/rails_project/sample_app$ git push
Counting objects: 34, done.
Compressing objects: 100% (21/21), done.
Writing objects: 100% (22/22), 2.54 KiB, done.
Total 22 (delta 4), reused 0 (delta 0)
To git@github.com:whowantstolivefo/sample_app.git
c18c79e..61a1ed5 master -> master
aslan@ubuntu:~/workspace/rails_project/sample_app$ git push heroku
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
aslan@ubuntu:~/workspace/rails_project/sample_app$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment