Saturday, March 28, 2015

mosh not working for non root users

I got a new server and installed ARCH on it copied everything over.. blablabla and try to connect and mosh doesnt work. What? It worked fine when i was logging in as root so whats the deal? After trying several things.. maybe its my user... or zsh... or... it wasn't

i finally ran mosh with ssh in verbose mode

master ➜  ~  mosh --ssh="ssh -vv" drew@newserver


lots of irrelevant output but it did have this

debug1: Sending command: mosh-server 'new' '-s' '-c' '8' '-l' 'LANG=en_US.UTF-8' '-l' 'LC_CTYPE=en_US.UTF-8'
debug2: channel 0: request exec confirm 1


well that looks ok... lets try to run it on the server


new server ➜  ~  mosh-server new -s -c8 -l LANG=en_US.UTF-8 -l LC_CTYPE=en_US.UTF-8

MOSH CONNECT 60001 GlRNWhTwTSQHoIirNIkLRw

mosh-server (mosh 1.2.4)
Copyright 2012 Keith Winstein
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

[mosh-server detached, pid = 19040]


but htop shows no mosh-server. What the hell? lets try that again with -v


MOSH CONNECT 60001 e8ctzUiQTAXIzes3eZj98g

mosh-server (mosh 1.2.4)
Copyright 2012 Keith Winstein
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

[mosh-server detached, pid = 19063]
forkpty: Operation not permitted 




new server ➜  ~  sudo usermod -aG tty drew


retry and it works. fuckin' 'ell now i can get back to work


No comments:

Post a Comment