OPEN SHH (Without Password)


How to transfer files from one machine to another machine (without Password) ?


OPEN SSH



(server:192.168.1.214   client:192.168.1.122)

now configure the ssh in server 


Step 1: 

install the openssh-server 

# yum install openssh-server


Step 2:

restart the services

systemctl start sshd
#iptables -F
#setenforce 0
#systemctl restart sshd



Step 3;

For key generataion use this cmd
# ssh-keygen

the below cmd used to copy the public key from server to client
# ssh-copy-id root@192.168.1.122

  (type the password of the client)


Step 4;


file transfer from server to client
in server: #scp root@192.168.1.122:/root/rrr.txt /root

file transfer from client to server
in server : #scp /root/rrr.txt root@192.168.1.122:/root

to check configuration file and key generation
#cd /etc/ssh/sshd_config


Note: if the client changes the password also we can transfer the files without password. hope this is for purely knowledge purpose .


THANK YOU !!!

Comments