SSH Password Authentication
SSH Password Authentication
Type - 1. ssh-keygen
2. ls .ssh
Create ssh key
Copy in Terminal
cat ~/.ssh/id_rsa.pub | ssh noob@192.168.0.104 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys"
Share file
scp test.txt noob@192.168.0.104:~
SSHPASS
Type -
1.export SSHPASS="Password"
2.sshpass -e ssh username@serverip