Ftp connectivity between two UNIX servers


 
Thread Tools Search this Thread
Special Forums IP Networking Ftp connectivity between two UNIX servers
# 1  
Old 11-05-2013
Ftp connectivity between two UNIX servers

Hi All

I am having issues using ftp between a solaris 10 server to a HP-UX 11.31 server, but from the solaris server to the hp-ux I am able to ping. This is what I have done so far:
in the solaris server:
Code:
root@MPCRS01 # svcs -a | grep ftp
online         Jul_26   svc:/network/ftp:default

and
Code:
svcs -xv ftp
svc:/network/ftp:default (FTP server)
State: online since Fri Jul 26 19:48:55 2013
See: man -M /usr/share/man -s 1M in.ftpd
See: man -M /usr/share/man -s 1M ftpd
Impact: None.

and
Code:
# cat /etc/services |grep -i ftp
ftp-data        20/tcp
ftp             21/tcp
tftp            69/udp

and
Code:
# netstat -an |grep -i *.21
*.21                 *.*                0      0 49152      0 LISTEN
*.21                              *.*                             0      0 49152      0 LISTEN

and
Code:
 # netstat -nr
  
  Routing Table: IPv4
    Destination           Gateway           Flags  Ref     Use     Interface
  -------------------- -------------------- ----- ----- ---------- ---------
  default              10.254.3.65          UG        1     107127
  10.254.3.64          10.254.3.69          U         1        173 nxge0
  224.0.0.0            10.254.3.69          U         1          0 nxge0
  127.0.0.1            127.0.0.1            UH      632   28972624 lo0
  root@MPCRS01 # ifconfig -a
  lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
          inet 127.0.0.1 netmask ff000000
  nxge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
          inet 10.254.3.69 netmask ffffffc0 broadcast 10.254.3.127
          ether 0:21:28:b1:db:70

Sorry I had to copy and paste from email sent to me with those comands as I do not have access to the system.

On the HP-UX server:

Code:
 #cat /etc/inetd.conf | grep ftp
ftp          stream tcp6 nowait root /usr/lbin/ftpd     ftpd -l

Code:
#netstat -an |grep -i *.21
tcp        0      0  *.2121                 *.*                     LISTEN
tcp        0      0  *.21                   *.*                     LISTEN

Code:
cat /etc/services |grep -i ftp
ftp-data      20/tcp                 # File Transfer Protocol (Data)
ftp           21/tcp                 # File Transfer Protocol (Control)

Please can you assist

---------- Post updated at 02:55 PM ---------- Previous update was at 09:53 AM ----------

I try to connect from the solaris 10 server, using
Code:
sftp root@10.1.20.33

and on hp-ux server I have run the following:
Code:
/usr/local/sbin/tcpdump -v host 10.254.3.69

and the output was:

Code:
tcpdump: listening on lan2, link-type EN10MB (Ethernet), capture size 65535 bytes
14:31:16.479520 IP (tos 0x0, ttl 62, id 52233, offset 0, flags [DF], proto TCP (6), length 52)
    crs.58105 > mcelVMhost5.22: Flags [S], cksum 0x91b3 (correct), seq 2968345370, win 49640, options [mss 1460,nop,wscale 0,nop,nop,sackOK], length 0
14:31:16.522288 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has crs (Broadcast) tell mcelVMhost5, length 28
14:31:16.543097 ARP, Ethernet (len 6), IPv4 (len 4), Reply crs is-at 58:8d:09:a1:ee:21 (oui Unknown), length 46
14:31:16.543137 IP (tos 0x0, ttl 64, id 8869, offset 0, flags [DF], proto TCP (6), length 52)
    mcelVMhost5.22 > crs.58105: Flags [S.], cksum 0x2c8b (incorrect -> 0xa433), seq 570920015, ack 2968345371, win 65535, options [mss 1460,nop,nop,sackOK,wscale 2,nop], length 0
14:31:17.604979 IP (tos 0x0, ttl 62, id 52234, offset 0, flags [DF], proto TCP (6), length 52)
    crs.58105 > mcelVMhost5.22: Flags [S], cksum 0x91b3 (correct), seq 2968345370, win 49640, options [mss 1460,nop,wscale 0,nop,nop,sackOK], length 0
14:31:17.605304 IP (tos 0x0, ttl 64, id 8870, offset 0, flags [DF], proto TCP (6), length 52)
    mcelVMhost5.22 > crs.58105: Flags [S.], cksum 0x2c8b (incorrect -> 0xa433), seq 570920015, ack 2968345371, win 65535, options [mss 1460,nop,nop,sackOK,wscale 2,nop], length 0

Please can someone explain?
# 2  
Old 11-07-2013
sftp is really ssh/scp not ftp (except to the command interface). Do you want ftp? Does ssh work?
# 3  
Old 11-08-2013
ftp connectivity between two servers

Hi

I want ftp
# 4  
Old 11-11-2013
Try ftp 10.1.20.33 if you want to ftp, or get the SSH server running on 10.1.20.33 if you want to sftp.



Robin
# 5  
Old 11-12-2013
ftp connectivity between two servers

Hi!

I am able to ftp 10.1.20.33 from most servers, only for one particularly, I cannot. ssh is already running on 10.1.20.33, because I am able to connect usinh ssh from any server.
# 6  
Old 11-12-2013
So, on the server you are trying to connect to, can you run:-
Code:
netstat -na|egrep "[.:]2[12] " | grep LISTEN

This should tell use what you have running. Please paste it inside CODE tags.


If port 21 is listening, then you can FTP. If it's port 22 then it's SSH/SFTP.

If your chosen tool is being listened for but it is not connecting, what symptoms do you get? It's probably either:-
  • About a 30 second delay then a time-out message - suspect firewall
  • Immediate connection refused message - suspect a mis-configured service



If you get something else, let us know and we can have another think.




Robin
# 7  
Old 11-12-2013
ftp connectivity between two servers

Hi !

I have port
Code:
21

listen, not a problem, the strange thing is that that same server, in which I am trying to ftp, can ftp successfully to another server, on the same chassis that resides the other server that refuses to accept ftp.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Establishing connectivity between two servers

I am trying to establish passwordless connectivity between server A and server B, but unsuccessfuly, because I beleive two issues. the first one is that on both servers, it is not possible to use root to login, it only allows to connect using a user (any) them su - root, which in turns I am able... (1 Reply)
Discussion started by: fretagi
1 Replies

2. IP Networking

Help with to check the tcp network connectivity between servers and hosts

ello, i am new to the networking side. I have a requirement to check the tcp network connectivity between server it's running on and the list of host's and ports combination. please help me where i am going wrong. my code: #!/bin/bash #read the file line by line cd "$1" cat... (17 Replies)
Discussion started by: sknovice
17 Replies

3. Windows & DOS: Issues & Discussions

Help with Windows to Unix connectivity

Hi Can we pass the parameter from the excel in windows and invoke the unix shell script from excel VBA by passing this parameter and get the results of shell script to the excel sheet? We tried to get the things in unix independently but we still strucked in connecting the excel to... (5 Replies)
Discussion started by: bikky6
5 Replies

4. Shell Programming and Scripting

Database connectivity using unix

Hi, I am trying to connect to the database through Unix serer using following command- mysql -u root -Jepadt -D dtdatabase But it giving me error - mysql: unknown option '-J' Can anybody help me to solve this problm Thanks in advance Please use code tags, thanks. (2 Replies)
Discussion started by: pspriyanka
2 Replies

5. IP Networking

Connectivity problem in two servers.

HI I have made a connection with external server which is also UNIX. I was tryign connectivity with this by telnet which fails and ping i sshowing socket is alive and traceroute tells the asterisk astersik:traceroute to 153.88.182.28 (153.88.182.28), 30 hops max, 8080 byte packets 1 * * * 2 *... (1 Reply)
Discussion started by: nixhead
1 Replies

6. Solaris

connectivity between servers

We have two servers A and B (both running Solaris 10) out of which one is application server and the other is database server. The two servers faced certain network issues and the two servers were temporarily disconnected.this happened around 5AM GMT monday.Can anyone suggest some log files or... (2 Replies)
Discussion started by: asalman.qazi
2 Replies

7. IP Networking

Need to check the connectivity between 2 servers

Hi All, I need an automation script to check the connectivity between 2 UNIX servers. Could anybody please help in this regards? regards, janardhan (1 Reply)
Discussion started by: rjanardhan83
1 Replies

8. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

9. Shell Programming and Scripting

FTP between two UNIX servers

Hi I have server A and server B. On server B the directory is called /tmp/hmp On server A I want to get the files on server B:/tmp/hmp via FTP. After I have got the files via FTP I have to delete them. In the script below I'm affraid of that I delete files before I get them by ftp. ... (1 Reply)
Discussion started by: hpedersen4
1 Replies
Login or Register to Ask a Question