0

Trying to copy files from one server to another because the amount of files is not feasible to do by copying to my home pc and then out to second server.

SSH, rync, and scp all hang from either server, but works fine to log in directly over SSH either from web terminal or from putty over SSH.

  • I whitelisted IP of server 1 to CSF on server 2.
  • I whitelisted IP of server 2 to CSF on server 1.
  • I completely turned off CSF on both servers to see if it was blocked by the firewall.

I added this into sshd_config:

PermitRootLogin yes
AllowUsers root otheruser 

I verified the port on both servers using this:

# netstat -plant | grep :22
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      101059/sshd
tcp        0      0 <server.2.ip>:22         <myhomeip.via.web.terminal>:61177     ESTABLISHED 102710/sshd: root@p
tcp6       0      0 :::22                   :::*                    LISTEN      101059/sshd

Example output:

every one of these commands outputs those 4 lines of code (starting with OpenSSH_7.4p1) and hangs (nothing else happens, it doesn't terminate and no error):

From server 2:

# ssh -A -t -v root@server2.mydomain.com -p 22     
         
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Connecting to server2.mydomain.com [<server2.ip>] port 22

hangs

ssh -A -t -v root@server1.mydomain.com -p 22 scp /testnew /testfolder

hangs

ssh -A -t -v root@server1.mydomain.com -p 22 /testnew /testfolder

hangs

ssh -A -t -v root@server1.mydomain.com -p 22 scp /testfolder root@server2.mydomain.com -p 22 /testnew

hangs

rsync -a -e "ssh -p 22" root@server2.mydomain.com:/testfolder /testnew

hangs

From server 1:

ssh -A -t -v server2.mydomain.com -p 22 scp /testnew /testfolder

hangs

ssh -A -t -v server2.mydomain.com -p 22 /testnew /testfolder

hangs

ssh -A -t -v server2.mydomain.com -p 22 scp /testfolder root@server1.mydomain.com -p 22 /testnew

hangs

rsync -r -v --progress -e "ssh -p 22" root@server1.mydomain.com:/testfolder /testnew

hangs

I also tried using a private key by generating a key on one server and uploading it to the other server, and then trying to access the other with SSH, but again, just hangs!

ssh -i ~/.ssh/id_dsa root@server1.mydomain.com -p 22

nothing! no result at all, only hangs.

What am I doing wrong??

I installed cygwin on my PC and I was able to ssh into both servers just fine. I only can't connect from one server to the other and back. I tried using the web terminal, I tried using putty, all just hangs, nothing. I tried resetting my home connection, I tried everything. Nothing. I'm at a loss and I don't know what else to try.

What am I doing wrong? Why can I access just fine from cygwin on my home pc, and I can access both directly over putty using SSH, but I cannot connect from one server to the other?

user7211
  • 1
  • 1

0 Answers0