Pages1

Playing with services in UBUNTU; Debugging a service in UBUNTU

Lets take example of service called "ssh" used for initiating secure connection with remote machine.
 
To collect debug logs in case of ssh please execute;
ssh -vvv hostname@ ipaddres
sftp -vvv hostname@ ipaddres  you will get lot of logs



To check status of a service
$ sudo status service ssh /* will show you status of service*/

Ubuntu Linux: To Start OpenSSH Server;Execute below command 

$ sudo /etc/init.d/ssh start
or
$ sudo service ssh start

Ubuntu Linux: Stop OpenSSH server

Type the following command:
$ sudo /etc/init.d/ssh stop
OR
$ sudo service ssh stop

Ubuntu Linux: Restart OpenSSH server

Type the following command:
$ sudo /etc/init.d/ssh restart
OR
$ sudo service ssh restart

Ubuntu Linux: See status of OpenSSH server

Type the following command:


$ sudo /etc/init.d/ssh status
OR
$ sudo service ssh status
Note: sftp,scp always make ssh connection. 

No comments:

Post a Comment