On Wed, Oct 14, 2009 at 10:55:36PM +0400, Vadim Zhukov wrote:
> On 14 October 2009 c. 22:46:07 Pieter Verberne wrote:
> > (...) I configured ssh to listen on port 2222 (...). Now rdist is
> > not working anymore:
> >
> > $ rdist -f [distfile]
> > pie...@lilium: updating host lilium
> > ssh: connect to host lilium port 22: Connection refused
> > pie...@lilium: LOCAL ERROR: No input from server.
> > pie...@lilium: updating of pie...@lilium finished
> >
> > rdist runs this command:
> > ssh <host> -l <login_name> rdistd -S
> >
> > is there a way to change it in:
> > ssh <host> -p 2222 -l <login_name> rdistd -S
> 
> You can play with your ~/.ssh/config file, see ssh_config(5).

If that doesn't work, use -P and a trivial wrapper script like

#!/bin/sh

exec /usr/bin/ssh -p 2222 "$@" 

But ~/.ssh/config is much neater, since it solves the issue for all
programs at once.

                Joachim

Reply via email to