# ssh-copy-id <user and REMOTE_IP> password:
Now we can try logging into the machine with “ssh ”” and check the following:
~/.ssh/authorized_keys
to make sure we haven’t added extra keys that we weren’t expecting.
And we are almost done.
Executing the automated test scripts
Now, I can execute the test script in the remote host without giving a password every time my machine connects with the remote host :
# ssh <user and REMOTE_IP> /home/user/testsuite/sample.sh hello world hello world
So, now you can follow the simple steps above to authenticate to a remote Linux server over SSH without using a password.
Security Fundamentals Practice Tests
The Security Fundamentals Practice Tests test one’s fundamental knowledge of cyber security. The practice tests are good for those who are preparing for various certification exams like the CCNA, CCNP, or CompTIA. They are also good for students and IT/security professionals who want to improve their understanding of cyber security.






0 Comments