Trying to use scp and pscp to transfer a file!

I am trying to transfer a file from my local desktop to my ubuntu ip. I have tried the command scp (my file) ubuntu@172.31.95.248:/opt/siff to directly transfer it where I want to, however I either get the error

ssh: connect to host 172.31.95.248 port 22: Connection timed out lost connection

or

FATAL ERROR: Network error: Connection timed out.

I have tried pinging my IP and it connects fine, so I am not sure why this will not connect. Thank you.

3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like