Link to home
Start Free TrialLog in
Avatar of Ben Hart
Ben HartFlag for United States of America

asked on

Xubuntu 14.04, OpenSSH Server works once then stops

Fresh Xubuntu install in an ESXi 5.5 vm, first thing after reboot was installing OpenSSH-server, which happened without incident. Ran sudo service ssh status, which was running.
Opened Putty on Win8 client, successfully logged into the Xubuntu server as adminuser.  Closed out ssh, editing sshd_config:

PermitRootLogin without-password yes

Then I stopped, started ssh and now Putty will not connect with: Connection refused.

ps ax | grep ssh:

1525 ? Ss 0:00 ssh-agent -s
2189 pts/8 0:00 grep --color=auto ssh

I had a small issue earlier where 'sudo service ssh stop/start/restart' returned an unknown service.  I fixed it by running initctl reload-configuration.

Now I can start, stop or restart ssh perfectly.. but and maybe things changes since 12.xx but I thought the ssh server deamon was sshd... shouldn't i need to make sure sshd is running somewhere?

ps ax | grep sshd:

2192 pts/8 S+ 0:00 grep --color=auto sshd

thats it..


OH almost forgot.. UFW is 'inactive'
Help?
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Did you undo that change and retry?
Avatar of Ben Hart

ASKER

HA!.. wow neglected and I posted this yesterday evening!


No I didnt try that.. I want root to be able to ssh into this box though.
SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the added explanation serial.

The verbage in my default sshd_conf file was indeed "PermitRootLogin without-password", I did NOT set it to that.  I assume that's some change between Xubuntu  13 and 14 and I am in the process of downloading 13.04 just to see.  But in the past I have never seen that syntax before so I can def go in and try changing it to just Yes or no and see what happens.

Also I know that you don;t need to logout and back in.. Im not sure where you got that I did that but this in Linux.. not Windows ;)

The specific Xubuntu instance is a VM on ESXi with the purpose of hosting an internal code repo.. I'm the server admin here so I'm creating the vm for the dev.  I've never ever had an issue like this with ssh, but this is the first time I went with something other than vanilla Ubuntu too so..

Also thanks for the Neglected comment.. I find EE's timing weird so I had always assumed Neglected meant that I had been the one neglecting my question after less than 24 hours.
Oh wow.. ok I think I;ve got it now.  'without-password' is a new variable to PermitRootLogin... crap I did not 'see' that before but now I do.
And my SSH now works like it should! yay
I'm giving you both points because ya'll took the time to reply to my topic.
Then xubuntu has it set up differently, or it's changed recently because of the new variable.  Does your root account actually have a password or is blocked with exclamations (!) in the password field?  In Ubuntu, Mint, & OSX they're blocked.  You can use still keys to ssh to root, but no password.
Nope.. my root account does have a passwd.