SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
SSH with Different Port Number
Author Message
Post SSH with Different Port Number 
I have a remote host that I need to use a non-standard port number for
ssh access. What do I put in the hosts' config.pl file to accomplish
this? I've messed with $Conf{SshPath} and $Conf{TarClientCmd} to no
avail.

Thanks for any help.

--
Lance Moxley
The News-Gazette



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post SSH with Different Port Number 
In your $Conf{TarClientCmd} change '$sshPath -q -x -n -l root $host'
and add a -p option. So if your client is running SSH on port 2222, it
would be '$sshPath -q -x -n -l root -p 2222 $host'. This is of course
assuming that you already have setup your client's sshd_config to
listen on port 2222.

On Tue, 27 Jul 2004 14:15:27 -0500, C Lance Moxley <clm < at > news-gazette.com> wrote:
I have a remote host that I need to use a non-standard port number for
ssh access. What do I put in the hosts' config.pl file to accomplish
this? I've messed with $Conf{SshPath} and $Conf{TarClientCmd} to no
avail.

Thanks for any help.

--
Lance Moxley
The News-Gazette

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/



--
Justin Guenther
IT Analyst
CrownAg International Inc.
250 Henderson Drive
Regina, SK, Canada S4N 5P7
Tel: (306) 522-8111
Email: justin.guenther < at > crownag.ca


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post SSH with Different Port Number 
On Tue, 27 Jul 2004, Justin Guenther wrote:

In your $Conf{TarClientCmd} change '$sshPath -q -x -n -l root $host'
and add a -p option. So if your client is running SSH on port 2222, it
would be '$sshPath -q -x -n -l root -p 2222 $host'. This is of course
assuming that you already have setup your client's sshd_config to
listen on port 2222.

Tried that and here is what happens. dimins2 is the hostname. From the
log:

Contents of log file /BACK/backuppc/pc/dimins2/XferLOG.bad.z, modified
2004/7/27 14:35:51

Running: /usr/bin/ssh -q -n -l root -p 2222 dimins2 --newer=2004-07-22\
17:00:03 --exclude=./tmp --exclude=./var/tmp --exclude=./proc
--exclude=./dev/shm .
Xfer PIDs are now 26243,26242
bash: --: invalid option
Usage: bash [GNU long option] [option] ...
bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--rcfile
--rpm-requires
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation
only)
-abefhkmnptuvxBCHP or -o option
tarExtract: Unexpected end of tar archive (tot = 512, num = , posn = )
tarExtract: Done: 1 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp,
0 filesTotal, 0 sizeTotal
Tar exited with error 512 () status

--
Lance Moxley
The News-Gazette



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB