[git-users] push error

2012-08-29 Thread ashu
What can be the reason of this error ?

ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ sudo git init
[sudo] password for ashu: 
Initialized empty Git repository in /home/ashu/Documents/git-dir/git1/.git/
ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ git commit -m first commit
fatal: Unable to create 
'/home/ashu/Documents/git-dir/git1/.git/index.lock': Permission denied
ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ sudo git commit -m first 
commit
# On branch master
#
# Initial commit
#
nothing to commit (create/copy files and use git add to track)
ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ sudo git remote add origin 
https://github.com/ashutoshverma/drunken-ironman.git
*ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ sudo git push -u origin 
master
error: The requested URL returned error: 403 while accessing 
https://github.com/ashutoshverma/drunken-ironman.git/info/refs

fatal: HTTP request failed
*

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/rE74k7ry258J.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] key authentication error

2012-08-29 Thread ashu
*Any one can tell me reason of  this error :

**[root@localhost git1]# git push -u origin master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly


whereas I have the result of the key verification command is follow :

[root@localhost git1]# ssh -vT g...@github.com
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa 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.3
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(102410248192) 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: Host 'github.com' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
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 public key: OpenShift-Key
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessi...@openssh.com
debug1: Entering interactive session.
debug1: Remote: Forced command: gerve ashutoshverma 
ca:48:70:58:a0:a9:88:1d:fe:31:8a:cc:11:36:5b:36
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 ashutoshverma 
ca:48:70:58:a0:a9:88:1d:fe:31:8a:cc:11:36:5b:36
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.utf8
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype e...@openssh.com reply 0
Hi ashutoshverma! You've successfully authenticated, but GitHub does not 
provide shell access.
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2272, received 2984 bytes, in 0.8 seconds
Bytes per second: sent 2974.6, received 3906.8
debug1: Exit status 1



*

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/-Lrduf7NQscJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.