This sounds kind of like your ssh setup is mangled. On the client
side, I think:
> ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
> Permission denied, please try again.
> ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
> Permission denied, please try again.
> ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
> Permission denied (publickey,password,keyboard-interactive).
I don't have a /usr/libexec/ssh-askpass either (on either MacOS or
Linux). I think you have to install one if you want ssh to use it, my
my copy of ssh has been more than happy without it. Have you somehow
configured your ssh to look for one?
if you do "ssh servername" or "ssh servername ls /etc", do they both work?
> File "/Users/ckunte/sshuttle/client.py", line 103, in _main
> (serverproc, serversock) = ssh.connect(remotename, python)
> File "/Users/ckunte/sshuttle/ssh.py", line 67, in connect
> s2.sendall(content2)
> socket.error: [Errno 32] Broken pipe
This isn't the most elegant way for sshuttle to respond to the
problem, though, so maybe I can patch that so you won't see an
exception :)
Have fun,
Avery
Aha; the "problem" is that you didn't have ssh configured for
passwordless login. That's supposed to work, but I've never tested it
because all my ssh servers are set up in that way :)
I've just pushed a fix for sshuttle that should make it work again.
Sorry about that. Please try git pulling my latest master and see
what happens.
Nevertheless, you might want to try out a script called "ssh-copy-id"
(google it!) that knows how to auto-configure a remote ssh server to
work with your id_rsa. Not typing passwords is pretty great :)
Have fun,
Avery
Aha. So when we use ipfw to redirect a connection from, say, en0 to
what ends up being localhost, it changes interfaces and the scoped
routing stuff starts looking up the wrong thing.
So yes, I suppose this counts as a MacOS bug and a workaround, not
really a security feature :)
The really bad news is that if Apple ever fixes it, I guess for
sshuttle to be a good citizen we'll have to make it auto-detect the
version of MacOS and only apply the workaround in affected versions :)
Have fun,
Avery
Actually maybe we have to do that anyway: has anybody tried sshuttle
on MacOS 10.4 or 10.5 yet? Maybe it doesn't have this sysctl at all,
which I guess could cause sshuttle to abort with an error.
Thanks,
Avery
> This happens to me if the host I'm connecting to with sshuttle isn't
> in my ~/.ssh/known_hosts. Once I save the host there, it works great.
This is a very good tip indeed; grateful for this.
Kind regards,
--
Chetan
Thanks again, Avery. Will give it a go whenever it's possible for me.
[I'm as you know still stuck with the older version of py. =( ]
--
Chetan