Koozali.org: home of the SME Server

ssh help (non-interactive access)

Offline mark

  • **
  • 34
  • +0/-0
    • http://webcoda.com
ssh help (non-interactive access)
« on: April 04, 2004, 08:18:27 AM »
Hi
I have enabled user command line access to an sme 6 box. I want to be able to (from remote windows pc's) rsync via ssh, run commands remotely (eg - ssh user@host command) and connect to the hidden web server (only port 23 is open to the web) via port forwarding.

 This all works fine but I can't get the port forwarding to work without leaving an active console session open while the session is up. Any ideas on how to disable the interactive side of things
while allowing the other funtions to work. Ideally I want to disable this via the users $HOME/.ssh/config file but the settings in this seem to get ignored.

any help appreciated.

cheers

Mark

tape

Re: ssh help (non-interactive access)
« Reply #1 on: April 04, 2004, 10:39:52 AM »
Quote from: "mark"
This all works fine but I can't get the port forwarding to work without leaving an active console session open while the session is up. Any ideas on how to disable the interactive side of things
while allowing the other funtions to work. Ideally I want to disable this via the users $HOME/.ssh/config file but the settings in this seem to get ignored.


Hmm.. not sure there, but isn´t it (windows) client related? So i.e. if youre using putty as your windows ssh client it should be an option there to hide the command window. The users config at $HOME/.ssh/config is for the connections behaviour itself and doesn´t depend on teh client in any way (afaik :).

I may be wrong in this case, i oftenuse putty but rarely to do more than a remote login. :)

hth
Anton

Offline mark

  • **
  • 34
  • +0/-0
    • http://webcoda.com
D'oh D'oh D'oh
« Reply #2 on: April 04, 2004, 11:55:59 AM »
why do I only find an answer after I have posted a question????
Thanks tape for your reply. Because I need to automate the connections I dont use putty. plink would work but I can't seem to use it with rsync -e.

I use ssh.exe from the cygwin suite. It turns out I needed to add a -N to kill the console so the syntax in my windows batch file becomes:

ssh -N -c blowfish -C  -L 80:server IP:8080
%USERNAME%@%HOST%

thanks again

Mark