IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New root on machine1 isnt the user anderson on github
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 57 years. meep
New Doesn't matter.
GitHub ties an SSH key to a single account only.

anderson@client -> root@remote -> anderson's-ssh-key@github.com

If forwarding is working, that would work. But I can't even get that far because Ubuntu is blocking forwarding as root.

anderson@client -> nonroot@remote -> anderson's-ssh-key@github.com works fine.
Regards,
-scott
Welcome to Rivendell, Mr. Anderson.
New but that isn't what you posted
And of course key forwarding is nowhere to be found as well:

[root@host1 ~]# ssh -T git@github.com
Permission denied (publickey).

if you are root and try to ssh to git@github.com and forcing no terminal github will see the request as user root@host1 not anderson

try
[root@host1 ~]# ssh -vv -T git@github.com
and see what it is actually doing
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 57 years. meep
New Re: but that isn't what you posted
If I put the private key in root's .ssh directory, the ssh to github.com works. That's not the issue.

When using forwarding the actual user should be immaterial. The problem is that the Ubuntu server is refusing to turn on forwarding when connecting as root.
Regards,
-scott
Welcome to Rivendell, Mr. Anderson.
New never heard of /etc/init/autoforward.conf
Service Setup (Ubuntu)

Under current Ubuntu (10.04) you can create an Upstart job to run the setup script:

$ cat /etc/init/autoforward.conf
# autoforward - automatic SSH forwarding

description "automatic SSH forwarding"

start on runlevel [2345]
stop on runlevel [!2345]

respawn

exec /usr/local/bin/setup-ssh-forwards
It should not be executable. You can start it as follows:

$ sudo initctl start autoforward
autoforward start/running, process 11590
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 57 years. meep
New That's port forwarding, isn't it?
I'm doing agent forwarding.
Regards,
-scott
Welcome to Rivendell, Mr. Anderson.
New Yes it is...
I use a different programs for that stuff... "autossh"
--
greg@gregfolkert.net
PGP key 1024D/B524687C 2003-08-05
Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C
New Re: but that isn't what you posted
anderson$ ssh nonroot@remotehost
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-15-server x86_64)
[...]
Last login: Thu Feb 28 22:17:29 2013 from [elided]
nonroot@host1:~$ ssh -T git@github.com
Hi [elided]! You've successfully authenticated, but GitHub does not provide shell access.


As compared to:

anderson$ ssh root@remotehost
Last login: Thu Feb 28 22:16:36 2013 from [elided]
[root@host1 ~]# ssh -T git@github.com
Permission denied (publickey).
Regards,
-scott
Welcome to Rivendell, Mr. Anderson.
New Re: but that isn't what you posted
Instead of:
[root@host1 ~]# ssh -T git@github.com

Try:
[root@host1 ~]# ssh -vvv -T git@github.com and look at the error messages.
-Mike

@MikeVitale42

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759 Historical Review of Pennsylvania
New The problem happens before that point.
There's no SSH_AUTH_SOCK available.
Regards,
-scott
Welcome to Rivendell, Mr. Anderson.
     ssh agent forwarding... - (malraux) - (26)
         I only know what Google tells me... - (Another Scott) - (1)
             No, that's the part I have working. - (malraux)
         ssh -A remotehost - (folkert) - (10)
             I already said that doesn't work. :-) -NT - (malraux) - (9)
                 Fine have fun... its a config issue DISALLOWING IT. - (folkert) - (8)
                     Er, what? - (malraux) - (7)
                         Try here. - (Another Scott) - (1)
                             Thanks anyways. :-) -NT - (malraux)
                         Ok. - (folkert) - (4)
                             If that doesn't help... - (folkert)
                             Yes, all of those things are configured as described. - (malraux) - (2)
                                 Now... ahh ha. - (folkert) - (1)
                                     Didn't find anything, but good idea. Thanks. -NT - (malraux)
         root on machine1 isnt the user anderson on github -NT - (boxley) - (9)
             Doesn't matter. - (malraux) - (8)
                 but that isn't what you posted - (boxley) - (7)
                     Re: but that isn't what you posted - (malraux) - (3)
                         never heard of /etc/init/autoforward.conf - (boxley) - (2)
                             That's port forwarding, isn't it? - (malraux) - (1)
                                 Yes it is... - (folkert)
                     Re: but that isn't what you posted - (malraux) - (2)
                         Re: but that isn't what you posted - (mvitale) - (1)
                             The problem happens before that point. - (malraux)
         Good grief, man! - (pwhysall) - (1)
             You'd think so, wouldn't you. -NT - (malraux)
         the only thing else I can think of - (boxley)

I never want to see that line out of context.
77 ms