Visit Our UNIX and Linux User Community


Not able to connect to new FTP server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Not able to connect to new FTP server
# 1  
Old 07-29-2015
Not able to connect to new FTP server

Hi All,

We have done new FTB setup.
I am not able to to connect to this new target server.

Here is the new setup to send files to the FTB :
- Login : FTB-TAN-DEV-SAP
- Protocol : SFTP
- Port : 54322
- Hostname : ftb-dev.apj.hp
- Env : DEV
- Target ID : 3225

I tried connecting to the target server using sftp ftb-dev.apj.hp

I got the below error
Code:
Connecting to ftb-dev.apj.hp...
ssh: connect to host ftb-dev.apj.hp port 22: Connection timed out
Connection closed

Why I got this error? and what is the resolution?


Please help me.

Thanks in advance.

Last edited by rbatte1; 07-29-2015 at 05:46 AM.. Reason: Added CODE tags for output/errors
# 2  
Old 07-29-2015
Hello ROCK_PLSQL,

There are several possible causes. One is that you are pointing to the wrong server, maybe the address is different to the outside or there is a gateway. Another could be that there is a firewall misconfigured to block in coming sshconnections. A third possibility is that the sshserver is listening on another port than the standard port. A fourth is that the sshserver wasn't started on that machine. Have you been able to connect to that server before via SSH on a different network?

Thanks,
R. Singh
# 3  
Old 07-29-2015
part of the diagnosis will be the length of time it took to respond. Did this error appear in 3 seconds or less, or was it more like 40 seconds?

A quick failure suggests more that the server is not listening for you, but the messages suggest the latter which could be incorrect DNS entry, network routing or firewall issues. You need to check that the target server has a route to the source to respond with.

Another possible issue could be if the target server has multiple IP addresses and the default route doesn't know how to find the source address.


Can you get a traceroute -n ftb-dev.apj.hp to work?




Robin
# 4  
Old 07-29-2015
Quote:
Originally Posted by ROCK_PLSQL
[...]
Here is the new setup to send files to the FTB :
- Login : FTB-TAN-DEV-SAP
- Protocol : SFTP
- Port : 54322
- Hostname : ftb-dev.apj.hp
- Env : DEV
- Target ID : 3225

I tried connecting to the target server using sftp ftb-dev.apj.hp

I got the below error
Code:
Connecting to ftb-dev.apj.hp...
ssh: connect to host ftb-dev.apj.hp port 22: Connection timed out
Connection closed

Why I got this error? and what is the resolution?
[...]
It appears that the default port 22 is not what's being used. Try
Code:
sftp -oPort=54322 ftb-dev.apj.hp

# 5  
Old 07-29-2015
Looks like Aia got your correct response but I've also seen this caused by a lack of time sync.
# 6  
Old 07-30-2015
Hi Aia,

This is working now.

Thanks a lot.

Previous Thread | Next Thread
Test Your Knowledge in Computers #171
Difficulty: Medium
IBM acquired Red Hat for $34 billion USD.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Connect to database through FTP server

Hi All I need to run a query on a remote database through a shell script. I have the query, I have the script ready. I have the details of the database server I need to connect to. Now my problem here is , the server where I run the shell script is an FTP server. ->I do not have Oracle... (4 Replies)
Discussion started by: sparks
4 Replies

2. Shell Programming and Scripting

Connect to FTP find files and export them to another server

Hi I'm trying to make script that will connect to FTP Server than find files that contain word HIGH in name and than export them to another server. Can anyone tell me if something like this is possible? Thanks :) (7 Replies)
Discussion started by: steve87bg
7 Replies

3. Red Hat

Implement FTP server on RHEL server without using FTP client

We have RHEL 5.8 in our environment, I had a query whether we can implement an FTP server using vsftpd package and Linux configurations like setsebool without using any external FTP clients like FileZilla etc. I am very confused on this. The FTP functionalities that should be present are download &... (3 Replies)
Discussion started by: RHCE
3 Replies

4. Linux

Unable to connect to Server machine from a client machine using ftp service

Hi, Could you please help me with the below issue.. I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1). I'm trying to connect to server from the client machine using ftp service. I have installed vsftpd daemon on both the machines. I'm getting... (4 Replies)
Discussion started by: raosr020
4 Replies

5. UNIX for Advanced & Expert Users

Public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (1 Reply)
Discussion started by: sridhardwh
1 Replies

6. Linux

Generate public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (0 Replies)
Discussion started by: sridhardwh
0 Replies

7. UNIX for Advanced & Expert Users

Unable to use FTP command to connect from one server to another

Hi, I have two unix servers A and B. from A i am trying to use the ftp command to connect to B but I am getting the "ftp: connect: A remote host refused an attempted connect operation." I checked the following things : 1.) Unix Server details for A and B after running the command uname -a... (3 Replies)
Discussion started by: mick_000
3 Replies

8. Shell Programming and Scripting

How to connect to FTP server which requires SSL authentication?

Hello, I tried searching through lot of threads for a solution but couldn't fetch the exact solution, so I am creating a new thread. I am trying to connect to a FTP server 1) using a simple FTP command, it gives the error : 534 Policy requires SSL. Login failed. 2) using SFTP... (19 Replies)
Discussion started by: amitshete
19 Replies

9. AIX

ftp connect in passive mode , ftp settings

how to connect to ftp server in passive mode? ftp server.abc and how can i see ftp settings, doesn't exist some ftpd.conf there is some other file where i check the options and configurations of ftp server? Thanks (3 Replies)
Discussion started by: prpkrk
3 Replies

10. Shell Programming and Scripting

ftp script not able to connect to ftp server.

I have the following ftp script to get files from a remote location. However, on running the script I find that I am not even able to connect to ftp server. I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP. IP used here is a dummy IP. What can go... (3 Replies)
Discussion started by: gram77
3 Replies

Featured Tech Videos