LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 10-28-2007, 09:41 AM   #1
bostonantifan
Member
 
Registered: May 2006
Location: Leominster, Massachusetts
Distribution: Kubuntu 10.04
Posts: 56

Rep: Reputation: 15
How to restart & check status of ssh server


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....
 
Old 10-28-2007, 10:51 AM   #2
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
/etc/init.d/ssh <enter>

This should display usage information.
 
Old 10-29-2007, 09:47 PM   #3
merize147
Member
 
Registered: Oct 2004
Location: Where ever I put down Lappie
Distribution: Dragged kicking and screaming to RHEL
Posts: 132

Rep: Reputation: 15
/etc/init.d/ssh start|stop|restart <-- pick one

and

ps -ef |grep "sshd"
this will give you the sshd server process info
 
Old 10-30-2007, 12:06 PM   #4
Posterboy
Member
 
Registered: Oct 2001
Location: Lilburn, Ga.
Distribution: RH
Posts: 77

Rep: Reputation: 15
I come to ubuntu from fedora, and old habits die hard. I got used to having the command "service" to start, restart, etc. If you try that at the command line, ubuntu will give you a couple of system5 packages you need to install, and after that, whee! service works as expected.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to bring up, shutdown, & restart Samba server bostonantifan Ubuntu 2 10-07-2007 10:26 AM
Need program/script to check server status thetawaverider Linux - Software 1 02-27-2007 01:58 PM
How to restart dhcpd on another server using SSH? hueofwind Linux - Newbie 17 11-23-2005 07:07 AM
How to check the status of NumLock & CapsLock in the keyboard prash.k Linux User Groups (LUG) 1 10-06-2005 04:40 PM
Check Printer Status Debby Linux - General 5 02-08-2002 09:52 PM


All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration