Link to home
Start Free TrialLog in
Avatar of Murali
MuraliFlag for India

asked on

SSH Techtia comamnd line referece to add/remove ports in Network

Hi use SSH Tectia on win2k8. I tried to find a command line reference to add/remove port numbers. I could not find..

Do you know how add/remove a port of SSH tectia from command line
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

question not clear, please elaborate
Avatar of Kerem ERSOY
Kerem ERSOY

Hi,

According to Tectia Client Manual (since tunneling is a client functionalty) the correct syntax for tunneling ports is:
client$ sshg3 -L [protocol/][listen-address:]listen-port:dst-host:dst-port sshserver

Open in new window

where:
• [protocol/] specifies which protocol is to be used in the tunneled connection, it can be ftp or tcp (optional
argument). The default is tcp.
• [listen-address:] defines which interface on the local client will be listened to (optional argument).
By default all interfaces are listened.
• listen-port is the number of the port on the local client, and connections coming to this port will be
tunneled to the server.
• dst-host:dst-port define the destination host address and the port to which the connection is tunneled
from the server.
• sshserver is the IP address or the host name of the Secure Shell server.


Chapter 6 Secure Shell Tunneling.

Here: http://www.ssh.com/index.php/support-overview/product-documentation/cat_view/75-product-documentation/86-tectia-ssh-client/76-tectia-ssh-client-62.html

Cheers,
K.
Avatar of Murali

ASKER

I've requested that this question be deleted for the following reason:

myself found that SSh Techtia COnfiguration server does not have a callable API to add/remove ports from windwos command line
Avatar of Murali

ASKER

Please do not close this question... got the thing where I have to point you guys....

Ok... I got the manual ...

http://www.ssh.com/index.php/support-overview/product-documentation/doc_download/31-tectia-ssh-server-61-administrator-manual.html

In the above manual look at topic 4.2.6 (Page No 109)... here the tectia allows to add port no you can be listen..

Now can you help me in understanding.. how to add and remove ports from comamnd line??
Avatar of Murali

ASKER

Do not close.. appologies
you cannot "remove ports" (whatever this means), you just can configure ssh to use tunneling local and/or remote ports

   ssh -L 4242:localhost:4242
Avatar of Murali

ASKER

Guys, look at the link I had provided... In the SSH Tecita Server console, there is option called Network.. Under this you can click on add, provide Listner Name and port and etc for adding a port... you can select exisitng listner and click on remove to remove a port...

The above is in GUI.. How can I do the samething in command line??
to start sshd to listen on a specific port, use:

   sshd -p 4242

or if you want more than one port:

  sshd -p 42 -p 43

this is the default (open)ssh behaviour, don't know if this applies to your specific brand too
i.g. you cannot "remove" a port, you need to stop sshd and start it again without the "removed" port
Avatar of Murali

ASKER

sshd not working in tectia
ASKER CERTIFIED SOLUTION
Avatar of Murali
Murali
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murali

ASKER

Did not find a accurate answer