LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-19-2019, 01:16 PM   #1
Sudheer Muvvala
LQ Newbie
 
Registered: Jun 2019
Posts: 1

Rep: Reputation: Disabled
Angry While connecting sftp am getting error.


Hi Team,

I have source and destination redhat linux servers. Both are running with different networks.

While connecting from source server with sftp am getting below user.

>$ sftp sudheer@ServerIP

Error :: Couldn't read packet: Connection reset by peer ...

Please help me out in this issue.
 
Old 06-19-2019, 01:37 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Sudheer Muvvala View Post
Hi Team,
I have source and destination redhat linux servers. Both are running with different networks. While connecting from source server with sftp am getting below user.

>$ sftp sudheer@ServerIP

Error :: Couldn't read packet: Connection reset by peer ...
Please help me out in this issue.
Please note that we aren't on your 'team', but will be happy to try to help you. Are you the administrator of these systems? Because the error is fairly clear...you have a communications error between the two systems. Have you verified that SSH is running on them both? That you can log in via terminal with SSH? Have you done ANY troubleshooting (such as checking logs, running SSH with the -vv for debugging info, etc.?)

And saying "redhat linux servers" tells us very little...what version of Red Hat? And since you're using RHEL, have you contacted Red Hat support, since you're PAYING FOR RHEL, RIGHT????
 
Old 06-19-2019, 03:16 PM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by Sudheer Muvvala View Post
>$ sftp sudheer@ServerIP

Error :: Couldn't read packet: Connection reset by peer ...
Connection reset suggests that a firewall prevented the connection. This could be an internal firewall device between the two subnets or more likely the firewall software on the target server. If you're using RHEL6 or lower that sofware is likely iptables. If RHEL7 or higher it is likely firewalld which uses iptables as a back end.

A quick way to determine if it is the target server's software is to temporarily stop the firewall there. e.g.:
RHEL6 or lower: service iptables stop
RHEL7 or higher: systemctl stop firewalld
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
while booting linux VM (5.8) getting error "error while loading shared libraries: lib IgnitedMind Linux - Enterprise 2 04-30-2013 12:49 AM
getting error while doing sftp linuxquery01 Linux - General 2 07-23-2009 11:04 AM
getting error while doing sftp linuxquery01 Linux - Desktop 1 07-23-2009 04:27 AM
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration