SSH to my server works. But I've enabled Multifactor authentication with Google Authenticator. So during the process of SSH, it asks for my verification code.
Issue now is I want to rsync to this server from a server located in another country. I'm trying this command:
rsync -av --progress -e "ssh -2 -p 2299" origin.txt email@example.com:/pat/to/destination/
Where the non-standard port is
2299 and the IP of the destination server is
184.108.40.206 in this illustrative example. Challenge is that SSH is not asking me for my verification code. So rsync fails with a message like this:
ssh: connect to host 220.127.116.11 port 2299: Connection timed out rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
Any ideas how I can enable rsync to also ask me the verification code so that this works?