Docker environments of ftp & sftp with docker-compose.yml.
Passphrase is mypassphrase
of ftp-sftp/id_rsa_with_passphrase_key
.
docker-compose up
sftp -i id_rsa_with_passphrase_key -P 22 bob@127.0.0.1 # Use passphrase to 'mypassphrase'
sftp -i id_rsa_without_passphrase_key -P 22 bob@127.0.0.1
ftp bob@127.0.0.1 21 # Use password to 'bobpassword'
docker-compose down