11-24-2009
Not enough information for us to give a good answer. For example, are trying to connect as root? Does your connect fail at the same time? Can you make other connections during the time when the script has problems? Did you check the network, sshd on the remote box?
10 More Discussions You Might Find Interesting
1. IP Networking
Hi,
I am having a problem with our AIX 4.3.3 Server accessing FTP. The error is " Connection Closed By Remote Host".
Scenario:
Since i put a default gateway on the server FTP connection is having a problem but when i remove the default gateway it will works fine..
Is there any way not... (1 Reply)
Discussion started by: mouglybean
1 Replies
2. Cybersecurity
"421 service not available, remote server has closed connection."
I tried to do ftp to one of the unix server .
ftp hostname
password
It get connects when i do any command it throws error
ftp> ls
"421 service not available, remote server has closed connection." (1 Reply)
Discussion started by: vishaldsh
1 Replies
3. Shell Programming and Scripting
hi
i am trying to connect the frontend server using ssh
i got the following error
ssh_exchange_identification: Connection closed by remote host
can anyone help please (1 Reply)
Discussion started by: Satyak
1 Replies
4. Linux
Dear All,
Recently our server has been giving the error:
"ssh_ exchange-identification: Connection closed by remote host"
The error causes the server to become in accessible via ssh and the services are stopped/hung. The server has to be restarted to make it working normal again.
The... (3 Replies)
Discussion started by: vguleria
3 Replies
5. UNIX for Dummies Questions & Answers
Hi Everyone,
Good day.
Scenario:
2 unix servers -- A (SunOS) and B (AIX)
I have an ftp script to sftp 30 files from A to B which happen almost instantaneously i.e 30 sftp's happen at the same time.
Some of these sftp's fail with the following error:
ssh_exchange_identification: Connection... (1 Reply)
Discussion started by: jeevan_fimare
1 Replies
6. Shell Programming and Scripting
How do I gain control of the "Connection closed by foreign host" message telnet yields when you connect to it in a shell script? I'm using the output:
#!/usr/local/bin/bash
count=$(ping -c 1 $1 | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
if ; then
echo "$1 PING "... (2 Replies)
Discussion started by: phpfreak
2 Replies
7. Solaris
OS: Solaris 8 Sparc
server1:userA:/home/userA# ssh userB@server1
Connection closed by < IP address>
Problem: From being a userA, I am unable to connect/ssh to the same server as when trying to use a different account. (userB)
Do you know where can i start checking? Here are some... (3 Replies)
Discussion started by: hrist
3 Replies
8. Red Hat
For a few days now I have been experiencing issues when trying to SSH into 1 of my machine. I get the following output when running 'ssh -vvv':
server1:/home/mymadq> ssh -l root -vvv server2
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config... (3 Replies)
Discussion started by: jaapar
3 Replies
9. Solaris
Version Details
Solaris version : Oracle Solaris 10 8/11 s10x_u10wos_17b X86
$ uname -a
SunOS tippy178 5.10 Generic_147441-01 i86pc i386 i86pcThe Issue
+++++++++
I have two solaris 10 Virtual Machines created using Virtual Box. One of my applications running on Source was trying to connect... (9 Replies)
Discussion started by: kraljic
9 Replies
10. UNIX for Dummies Questions & Answers
Please can you help me understand the significance of providing arguments under sh -s in
> ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh (4 Replies)
Discussion started by: Sree10
4 Replies
LEARN ABOUT CENTOS
tcpclient
tcpclient(1) General Commands Manual tcpclient(1)
NAME
tcpclient - create an outgoing TCP connection
SYNOPSIS
tcpclient [ -46hHrRdDqQv ] [ -ilocalip ] [ -plocalport ] [ -Ttimeoutconn ] [ -llocalname ] [ -ttimeoutinfo ] [ -Iinterface ] host port pro-
gram [ arg ... ]
DESCRIPTION
tcpclient attempts to connect to a TCP server. If it is successful, it runs program with the given arguments, with descriptor 6 reading
from the network and descriptor 7 writing to the network.
The server's address is given by host and port. host may be 0, referring to the local machine, or a dotted-decimal IP address, or a host
name; if a host has several IP addresses, tcpclient tries each in turn. port may be a numeric port number or a port name.
tcpclient sets up several environment variables, as described in tcp-environ(5).
OPTIONS
-ilocalip
Use localip as the IP address for the local side of the connection; quit if localip is not available.
-plocalport
Use localport as the port number for the local side of the connection; quit if localport is not available.
-Iinterface
Use interface as the local network interface. This is only defined for IPv6 sockets and needed if you use link-local IPv6
addresses.
-Ttimeoutconn
Give up on the connection attempt after timeoutconn seconds. Default: 60. This timeout applies to each IP address tried.
-d (Default.) Delay sending data for a fraction of a second whenever the remote host is responding slowly, to make better use of the
network.
-D Never delay sending data; enable TCP_NODELAY. This is appropriate for interactive connections.
-q Quiet. Do not print any messages.
-Q (Default.) Print error messages.
-v Verbose. Print all available messages.
DATA-GATHERING OPTIONS
-h (Default.) Look up the remote host name for TCPREMOTEHOST.
-H Do not look up the remote host name; unset TCPREMOTEHOST.
-llocalname
Do not look up the local host name; use localname for TCPLOCALHOST.
-r (Default.) Attempt to obtain TCPREMOTEINFO from the remote host.
-R Do not attempt to obtain TCPREMOTEINFO from the remote host.
-ttimeoutinfo
Give up on the TCPREMOTEINFO connection attempt after timeoutinfo seconds. Default: 26.
-4 Fall back to IPv4 sockets. This is necessary for terminally broken systems like OpenBSD which will not let IPv6 sockets connect to
V4-mapped IPv6 addresses. Please note that this also applies to DNS lookups, so you will have to use an DNS resolver with an IPv6
address to connect to IPv6 systems. Use DNSCACHEIP to set the DNS resolver IP dynamically.
-6 Force IPv6 mode in UCSPI environment variables, even for IPv4 connections. This will set $PROTO to TCP6 and put IPv4-mapped IPv6
addresses in TCPLOCALIP and TCPREMOTEIP.
SEE ALSO
date@(1), finger@(1), http@(1), mconnect(1), tcpcat(1), tcpserver(1), who@(1), tcp-environ(5)
tcpclient(1)