News for hackers. Stuff that matters.
Re:Mosh: the mobile shell by shocks on Monday September 05, 2016 @07:10AM (#12429473)
A great bit of kit, but totally unusable for me because of a lack of agent fowarding support[1]. :(

1: https://github.com/mobile-shell/mosh/issues/120

Re:Mosh: the mobile shell by d33 on Monday September 05, 2016 @07:17AM (#12429494)
Why would you need agent forwarding? It's a really dangerous feature.
Re:Mosh: the mobile shell by jstanley on Monday September 05, 2016 @07:19AM (#12429499)
It's useful in a corporate environment where you have tens to hundreds of machines you need to use, and all of them are trusted.

EDIT: "a really dangerous feature" is accurate though. For example if all of the staff have root access on a staging machine, then anybody can steal the ssh-agent of another user on the staging machine, and use it to login as that user on production machines.

Re:Mosh: the mobile shell by Daviey on Monday September 05, 2016 @07:29AM (#12429541)
A better way of solving it is to resolve the issue i raised: https://github.com/mobile-shell/mosh/issues/285
Re:Mosh: the mobile shell by ajdlinux on Monday September 05, 2016 @07:27AM (#12429534)
It'd be kinda nice if you could wrap it with some minimal level of protection through SELinux or something. Still wouldn't be as secure as switching it off, but at least a malicious insider would have to jump through a couple of hoops to get there.
Re:Mosh: the mobile shell by falcolas on Monday September 05, 2016 @10:47AM (#12430585)
In my opinion, it's much safer to do one of two things - use `-oProxyCommand=ssh <gateway> nc %h %p`, or set up different keys on the gateway host.

You risk the security of your SSH key when you use -A.

Re:Mosh: the mobile shell by Daviey on Monday September 05, 2016 @11:42AM (#12430844)
Yeah, that is what my response above points to.
Re:Mosh: the mobile shell by 4ad on Monday September 05, 2016 @08:33AM (#12429825)
In such an environment you should be using Kerberos. Then you won't need agent forwarding, and you can maintain security.

I would argue that in such an environment you really should be using LDAP+Kerberos, but if you think LDAP is too much effort (it really isn't), plain Kerberos is comparatively trivial to administer, and adding Kerberos (unlike LDAP) doesn't really require any significant changes to your environment.

Re:Mosh: the mobile shell by brians on Monday September 05, 2016 @10:05AM (#12430377)
Why is Kerberos ticket forwarding better than agent forwarding? Either way, root (or a bad .bashrc) can use your credentials while you're logged in.
Re:Mosh: the mobile shell by 4ad on Monday September 05, 2016 @11:59AM (#12430921)
Sorry. You are absolutely right. Long day...

I disable Kerberos ticket forwarding here, for this exact same reason. But then you don't have ticket forwarding! I don't know what I was thinking.

Re:Mosh: the mobile shell by jstanley on Monday September 05, 2016 @10:13AM (#12430414)
How does LDAP solve the problem?

We use LDAP to manage public keys for each user, but they still need to supply a private key at some point.

Re:Mosh: the mobile shell by 4ad on Monday September 05, 2016 @12:01PM (#12430929)
I was talking about Kerberos, not LDAP. However, that's still not right, see parallel comment.
Re:Mosh: the mobile shell by ajdlinux on Monday September 05, 2016 @07:22AM (#12429515)
Extraordinarily useful on an internal corporate network, especially when you're scp'ing remote->remote and so on.
Re:Mosh: the mobile shell by 4ad on Monday September 05, 2016 @09:08AM (#12430022)
Just use kerberos. You don't need LDAP to use Kerberos (although you probably should be using LDAP too). Kerberos without LDAP is trivial to set-up and administer, and it's very non-invasive, so you don't need to do any significant changes to your organization.
Re:Mosh: the mobile shell by vacri on Monday September 05, 2016 @09:34AM (#12430173)
ssh'ing through the jumphost when the VPN on it wasn't working properly was a use-case for me. Agent forwarding is fine, as long as you use it judiciously.
Re:Mosh: the mobile shell by Mic92 on Tuesday September 06, 2016 @01:18AM (#12433800)
I use this patch for some time and it works great for me.