Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssh questions

Status
Not open for further replies.

peterv6

Programmer
Joined
Sep 10, 2005
Messages
70
Location
US
A few weeks ago, I set up an ssh server on my Ubuntu machine. It worked perfectly. Unfortunately, I'm not an expert at this stuff, and I forgot how to start, stop, restart & check the status of the server from the command line. Can anyone help me out with the commands?
Thanks....


PETERV
Syracuse, NY &
Boston, MA
 
To see if it's running...
ps -eaf |grep sshd
Will output...
root 5484 1 0 Sep29 ? 00:00:00 /usr/sbin/sshd

To stop/start. As root...
/etc/init.d/ssh stop
/etc/init.d/ssh start

You could also use restart in place of start/stop.

Mark
 
From the /etc/init.d/ssh script:
Code:
"Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}"

Presumin that it's the ssh and openssh-server You innstalled.

And since this is Ubuntu You need to use sudo, so
Code:
sudo /etc/init.d/ssh restart
to restart sshserver.


:-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top