I try to transfer the “test” folder from droplet (IP: 126.96.36.1994) to another server (droplet 2 IP:188.8.131.524) using command shell script scp, then I get an error like:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic). lost connection
scp -P 333 -r /test-web/test email@example.com:/web
is there a syntax error or is there a missing configuration?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.