sftp使用密钥连接

SSH :

ssh -i /path/to/private/key user@hostname

SFTP:

sftp -oIdentityFile=/path/to/private/key user@hostname