Configure ssh server
- A linux server with ip address 192.168.0.254 and hostname Server
- A linux client with ip address 192.168.0.1 and hostname Client1
- Updated /etc/hosts file on both linux system
- Running portmap and xinetd services
- Firewall should be off on server
Three rpm are required to configure ssh server. openssh-server, portmap, xinetd check them if not found then install
Now check sshd, portmap, xinetd service in system service it should be on
#setup
Select System service from list
[*]portmap
[*]xinetd
[*]sshd
Now restart xinetd and portmap and sshd service
To keep on these services after reboot on then via chkconfig command
After reboot verify their status. It must be in running condition
To keep on these services after reboot on then via chkconfig command
After reboot verify their status. It must be in running condition
Create a normal user named bob
On Linux client
ping from ssh server and run ssh command and give root password
By default ssh command will enable root session. If you want to login from normal user then specify his name with -l options.
ssh 192.168.0.254 -l bob
No comments:
Post a Comment