OpenSSH kicks me out just after connecting
I'm trying to connect to Arch Linux as a Virtualbox guest on a OS X host.
I've installed OpenSSH on Arch, and I think that I've configured it correctly, and I've redirected port 3022 to 22 in the virtualbox guest's network settings (using NAT connection mode), Host Port 3022 and Guest Port 22.
But I get kicked out just after I've logged in.
This is the output of ssh -vvv ran@localhost -p 3022 that is run on my host computer: http://pastebin.com/raw/ptmH3vJs
Less verbose (just one -v): http://pastebin.com/raw/mHGv770u
This is my /etc/ssh/sshd_config: http://termbin.com/dxpf
The host's hostname is ran-mpb14, the arch guest hostname is ran-arch-vb. I'm using the user ran on both machines.
Edited 6 Jun 2016. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 4 · 100% up
- Kind
- Text
- ID
- 4mtk65
7 comments
Shot in the dark, what does
grep "ran" /etc/passwdgive you on the VM?
Sometimes a bad shell config will kick you right out of the session.
ran:x:1000:1000::/home/ran:/usr/bin/zshShould it be something else?
Nah looks good. I guess you should check if zsh is actually installed... but it sounds like you were using it...
What do the logs look like on the arch box in /var/log?
Is there any specific log file I should look for/in?
Arch barely uses /var/log any more.
should give you the ssh daemon's output for the current boot.
Deleted before we saved it.