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.
Topics
Tags
asked 2 months ago7 views
3 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
answered 2 months ago
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
answered 2 months ago
0
I've fixed it myself, I just restarted the instance and waited a few hours.
answered 2 months ago
Relevant questions
SCP permission denied for some files, not all??
asked 2 years agotrying to ssh into an ec2 instance
asked 7 days agoCan SSH into instance, but can't SCP files into it
asked 2 months agoscp command difference for Ubuntu EC2 in a VPC
asked 2 months agoHow to keep instance running after disconnecting SSH.
Accepted Answerasked 2 months agoCan I SSH into my container running on AppRunner?
asked a month agoSSH into EC2 stops accepting connections after about 8 minutes
asked 4 months agoCant connect to EC2 instance with FTP client
asked 2 months agoHow do I install the unlimited strength policy for JCE on AWS Workspaces?
asked 2 years agounable to access my instance
asked a year ago
When I try using sudo /etc/init.d/sshd restart it says the command isn't found.