Wednesday, October 29, 2008

SSH In Linux

SSH In Linux

Packages for ssh at Linux & Starting the service
openssh-server This package is for configuring the ssh at the server pc.
openssh-client This package is for configuring the ssh at the pc that will try to connect to other with that configuration.
We can check with the following command whether the packages are installed or not.
rpm -qa | grep openssh-server
We can install the packages with the following command.
rpm -ivh openssh-server
rpm -ivh openssh-client
Then we have to start the service with the following command
service sshd start
/etc/init.d/sshd start
At Debian we have to install with the following command
apt-get install ssh
At Debian after installing a package, the service starts automatically.
To start the ssh service at any time at Debian we have to use the following command
/etc/init.d/sshd start —- starts the service
/etc/init.d/sshd restart —- restarts the service
/etc/init.d/sshd stop —— stops the service
/etc/init.d/sshd reload —– reloads the service

No comments: