Data Networking/Spring 2015/GROUP4/SSH
Appearance
To configure SSH Server:
[edit | edit source]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:
[edit | edit source]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