< Data Networking < Spring 2015 < GROUP4

Data Networking/Spring 2015/GROUP4/SSH

To configure SSH Server:

1) Install openssh in server

sudo apt-get install openssh-server

2)change directory

cd /etc/ssh

3)modify ssh_config

nano sshd_config
password authentication no
PAM no
challenge rasp authentication no

4) To reload ssh:

sudo /etc/init.d/ssh reload

To configure in Client:

1.Install openssh in client

sudo apt-get install openssh-client

2. Generate keygen

ssh-keygen

3. After generating keygen change the directory

cd .ssh

4. To access the server

scp id_rsa.pub 192.168.5.6: /home/rajesh/
ssh  rajesh@192.168.5.6

5. ls- to show all accessable files

cat id_rsa.pub >> ~/.ssh/authorized_keys

This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.