Monday, October 19, 2009

Setup SSH Server on Fedora

SSH is installing by default on installation of Fedora operating system itself. In this post we will go through the basic setup of SSH server on Fedora Operating System.

Checking SSH server status

a. Using the service command to check the current status of the sshd

[root@myserver ~]# service sshd status
sshd is stopped

[root@myserver ~]#

b. Start SSH server

Start the sshd process using service command.

[root@myserver ~]# service sshd start

Starting sshd:.............................................[ OK ]

[root@myserver ~]#

Automatically start SSH server

By using chkconfig command we can make sure the automatic starting of ssh services when the system reboot. Before this use the following commands to make sure the current status and configuration of SSH services on this machine.

1.Use the following command to check the current status of the sshd
[root@myserver ~]# chkconfig –-list sshd

sshd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

[root@myserver ssh]#

2. Use chkconfig command to automatically start the sshd service for runlevel 3, 4 and 5.

[root@myserver ssh]# chkconfig --level 345 sshd on
[root@myserver ssh]#

3. Verify the change for shhd on runlevel 3, 4 and runlevel 5.

[root@myserver ssh]# chkconfig --list sshd

sshd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

[root@myserver ssh]#

Basically we have done the basic setup process now we can proceed with the confirmation of the SSH services.

I hope this will be informative for you !

Cheers

No comments: