SCP transfer to one particular host is getting stalled
Hi
We are trying to transfer an backup files to another host via scp and its getting stalled after some time. However from the same host when we transfer to other hosts there is no issues. There is no firewall in the path.
Responses
Hello Ajith,
Is the scp stalling at the same point every time? (specifically 2112) You may have an issue with your MTU and the switch hardware/config you are using.
Stack Overflow had a post on this topic
http://stackoverflow.com/questions/11985008/sending-a-large-file-with-scp-to-a-certain-server-stalls-at-exactly-2112-kb
Hi Ajith,
Hinton asked whether it stalls, but continues after sometime or it breaks after sometime.
Did you run top on the server that causes this stalling scp.
Did you open a Red Hat support case? Maybe support can find a configuration difference.
Kind regards,
Jan Gerrit Kootstra
Ajith, Please see the previous comments by myself and others...
Also, try running strace with the scp command such as: strace scp /path/to/file.xyz username@thatssystem:/path/to/target/location/ as well to see what that offers. Have a look at the logfiles as well on both servers at the very time you attempt the scp.
Are you using the typical Red Hat provided scp, and not a third party one such as Quest VAS?
Did scp ever work going to that system, or fail recently? Have you also attempted restarting the sshd service? Is the server joined to LDAP and unable to authenticate for proper users? If you are using ssh keys, is there any chance the permissions on the distant server for the .ssh and home directory for the user in question are fouled up? is the /etc/resolv.conf on the distant server set up properly to see dns and therefore the authentication server?
Is the time on the server your are doing an scp to proper? Is ntp running and or try an ntpdate -b [name-of-time-server]. Sometimes if a server is over five minutes off in time, then that can cause issues with authentication.
Please see the previous comments/questions from myself and others.
Thanks,
Ajith,
See this good tip from Tom Jones at this link https://access.redhat.com/discussions/1173853
- Is there anything useful in the logs on the system you are going to via SSH?
- Have a good look at /etc/nsswitch.conf on the target system, is it rational compared to other like systems?
- Does the ip address on the system match dns?
-- Are you using DHCP?
-- Is the /etc/sysconfig/network file rational compared to other like systems? - Does the system reside in another network segment or DMZ where an external firewall may be a factor?
- Also check this link at "ask.xmodulo.com" for some possibilities
- Is the /etc/resolv.conf on the target system set to something proper (and pingable)
- Are the default routes for the target system proper ( use
netstat -rnand compare to another system) - Is the target system using LDAP, and if so, once on the system can you su - from one non-root user to another?
- Are home drives being mounted from another location that is experiencing a delay?
- Have you tried using ssh for a user whose account and home drive resides on the local system and not a remote file system?
- Retry the ssh, but this time with the below (script -a will push all text on the screen to a text file such as below. replace "someuser" and "thatsystem" to what you use to ssh to that system)
script -a ~/ssh_verboseoutput.txt
ssh -vvv someuser@thatsystem
At some point, type "ctrl x" to stop the output of the "script -a" above.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
