Description: ======> First 20 Seconds is bore don't exit. Its an interesting concept <======
When ever we are connecting to ssh server we need to produce password. Either the supplying of password is for the first time conncetion or for the multiple connections. By using this below script we can create multiple ssh sessions without password. And for the first ssh conncetion this script needs to be run under the admin privilages. Here is the script and save it it into sh directory.
Host *
ControlMaster auto
ControlPath ~/ .ssh/master-%r@%h:%p
so when ever we add this script in to ssh directory it wont ask us for credentials for the second time login time.This is because at the first login time of ssh connection all the credentilas are been stored as master-root@<>ip in ssh directory. So there could be no further multiple password prompts, it will just refer those credentials when ever a ssh connection needs to be created.The important thing to be notices is the first ssh connection needs to be established by the root.
When the root exits from the terminal the master-root@ credentials gets wiped without any prompting.
Tags: ssh , ssh-connection , multiple-ssh-sessions , Single- password- for- multiple- ssh- sessions , securitytube ,
Disclaimer: We are a infosec video aggregator and this video is linked from an external website. The original author may be different from the user re-posting/linking it here. Please do not assume the authors to be same without verifying.