command line interface - Connecting to an sftp server with lftp in a passworless fashion? -
i'm running following script uses lftp:
lftp -f " open sftp://myuser@sftp_server:443 lcd $ftp_folder mirror --no-empty-dirs --only-newer --verbose $ftp_folder $local_folder bye "
now if i've allready passed public key server administrator if in command line sftp -p 443 myuser@sftp_server connected , sftp prompt. when pwd command tells me folder need sync has path "/0datos" , value of $ftp_folder.
when execute script this: source: directory password:
is there way connect without server asking me password (i don't have it) in order sync folder 0datos local folder of mine?
just supply empty password in url:
open sftp://myuser:@sftp_server:443
lftp asks password before connecting server, if server not require 1 lftp not send it.
Comments
Post a Comment