Description
This article is from the SSH - Secure Shell FAQ, by Thomas Koenig Thomas.Koenig@ciw.uni-karlsruhe.de with numerous contributions by
others.
5.12. Why does ssh loop with "Secure connection refused'?
This is a configuration problem.
Ssh attempts to fall back to the "r" commands when it cannot connect
to an ssh daemon on the remote host. It does this by execing your old
rsh to use the old protocol.
There are two possibilities why this could be:
o You probably have installed ssh as rsh, and forgotten to give the
--with-rsh=PATH option to configure the second time. When ssh is
looking for rsh, it keeps executing itself (or an older version of
itself). To solve this, recompile ssh with the correct place for
rsh.
o You moved the old rsh and rlogin into a different directory and
correctly are calling the old rsh. The old rsh has a hard-coded
path to the old rlogin program, so you wind up execing the old rsh
which in turn execs the new replacement (ssh)rlogin.
In that case, you might want to move the old rsh and rlogin
binaries into /usr/old, patch the old rsh binary by running the
Perl script
perl -pi.orig -e 's+/usr/(bin|ucb)/rlogin+/usr/old/rlogin+g ;' /usr/old/rsh
which will generate a patched version of rsh and save the old one in
/usr/old/rsh.orig.
Reconfigure ssh with --with-rsh=/usr/old/rsh.
 
Continue to:
Share and Enjoy
Bookmark this story so others can enjoy it:
Tags
security, SSH, Secure Shell