Skip to content
Advertisement

Redirect the password prompt alert

Is it possible to redirect password prompt alert to a file or silence it?

[lnx51 ~]$ ssh root@192.168.1.1 root@192.168.1.1's password:

Advertisement

Answer

To avoid password authentication you can use next sentence:

  ssh -o PasswordAuthentication=no root@192.168.1.1

This disable ‘manual’ authentication but you need another method to login, if not you will get an error like that:

  Permission denied (publickey,password).

Maybe you have some issue with your id_rsa

If you want to use with rsync (as your example) you must put command with quotes (“):

   rsync -v -r -l -e "ssh -o PasswordAuthentication=no"  ctxt root@192.168.6.2:/home/

You can check rsync options at here

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement