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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠