Skip to content

Can SSH into instance, but can't SCP files into it

0

I have an EC2 instance that I'm trying to SCP files into it. I can SSH into it perfectly fine, but when I try to SCP files, I get

client_loop: send disconnect: Connection reset

I'm not sure why this is happening, thanks in advance.

asked 4 years ago1.4K views
2 Answers
0

Hello

I think it may the issue of your network , You can SSH into the machine and the following,

vi /etc/ssh/sshd_config updated the values

ClientAliveInterval 60
ClientAliveCountMax 3

sudo /etc/init.d/sshd restart let me know if you still have issues

EXPERT
answered 4 years ago
  • When I try using sudo /etc/init.d/sshd restart it says the command isn't found.

0

I've fixed it myself, I just restarted the instance and waited a few hours.

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.