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
REDIR(1) General Commands Manual REDIR(1)
NAME
redir - redirect tcp connections
SYNOPSIS
redir [--laddr=incoming.ip.address] [--caddr=host] [--debug] [--syslog] [--name=str] [--timeout=n] [--bind_addr=my.other.ip.address] [--ftp=type]
[--transproxy] [--connect=host:port] --lport=port --cport=port [--bufsize=n] [--max_bandwidth=n] [--random_wait=n] [--wait_in_out=n]
redir --inetd [--caddr=host] [--debug] [--syslog] [--name=str] [--timeout=n] [--ftp=type] [--transproxy] [--connect=host:port] --cport=port
[--bufsize=n] [--max_bandwidth=n] [--random_wait=n] [--wait_in_out=n]
DESCRIPTION
Redir redirects tcp connections coming in to a local port to a specified address/port combination.
It may be run either from inetd or as a standalone daemon. Depending on how redir was compiled, not all options may be available.
OPTIONS
--lport
Specifies port to listen for connections on (when not running from inetd)
--laddr
IP address to bind to when listening for connections (when not running from inetd)
--cport
Specifies port to connect to.
--caddr
Specifies remote host to connect to. (localhost if omitted)
--inetd
Run as a process started from inetd, with the connection passed as stdin and stdout on startup.
--debug
Write debug output to stderr or syslog.
--name Specify program name to be used for TCP wrapper checks and syslog logging.
--timeout
Timeout and close the connection after n seconds of inactivity.
--syslog
Log information to syslog.
--bind_addr
Forces redir to pick a specific address/interface to bind to when it listens for incoming connections.
--ftp When using redir for an FTP server, this will cause redir to also redirect ftp connections. Type should be specified as
either "port", "pasv", or "both", to specify what type of FTP connection to handle. Note that --transproxy often makes one
or the other (generally port) undesirable.
--transproxy
On a linux system with transparent proxying enabled, causes redir to make connections appear as if they had come from their
true origin. (see /usr/share/doc/redir/transproxy.txt)
--connect
Redirects connections through an HTTP proxy which supports the CONNECT command. Specify the address and port of the proxy
using --caddr and --cport. --connect requires the hostname and port which the HTTP proxy will be asked to connect to.
--bufsize n
Set the bufsize (defaut 4096) in bytes. Can be used combined with --max_bandwidth or --random_wait to simulate a slow con-
nection.
--max_bandwidth n
Reduce the bandwidth to be no more than n bits/sec. The algorithme is basic, the goal is to simulate a slow connection, so
there is no pic acceptance.
--random_wait n
Wait between 0 and 2 x n milliseconds before each "packet". A "packet" is a bloc of data read in one time by redir. A
"packet" size is always less than the bufsize (see also --bufsize).
--wait_in_out n
Apply --max_bandwidth and --random_wait for input if n=1, output if n=2 and both if n=3.
SEE ALSO
inetd(1)
local REDIR(1)