Quote:
Originally Posted by satinet
what sort of check?
|
I want to know if the passphrase is entered from the user. In the case of power fail, the script will try to scp the backup data either the user has loged in or not. I want to be sure that the passphrase is entered.
Quote:
Originally Posted by satinet
are you using ssh-agent to pass the passphrase between machines?
|
I use keychain
Quote:
Originally Posted by satinet
what's the point of what they are asking?
|
I have to download a lot of files. If the passphrase is not entered, then the web server will log a lot of unauthorized tries of scp. That is an abuse. Thus, before ANY scp I have to check that the passwordless login is working.
I tried to get the results of a simple command (eg date) using
Code:
scp user@host date > login.txt
but if the user had not entered the passphrase the file was empty. I found no way of retreive the "enter the passphrase" or any similar attempt.