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.

已提問 2 年前檢視次數 972 次
3 個答案
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

profile picture
GK
已回答 2 年前
  • When I try using sudo /etc/init.d/sshd restart it says the command isn't found.

0

Are you using ubuntu or debian based server?

Try this command:

sudo systemctl restart sshd

and then check the status of SSH daemon with:

sudo systemctl status sshd

it should display green dot and look for any error in the logs. Hope it helps

已回答 2 年前
0

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

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南