Page 1 of 1 1
Topic Options
#174736 - 2007-03-17 02:22 AM Kixtart,Linux and SSH
Shaba1 Offline
Fresh Scripter

Registered: 2005-08-20
Posts: 44
I am thinking about installing and IPCOP box on my network to replace winproxy. IPCOP is a specialized linux distro JUST for use as a firewall/NAT and web proxy. It can be commmanded via ssh. Is there anyway a kix script running on my win2k server could send commands via ssh to the IPCOP or Any Linux machine?
Top
#174739 - 2007-03-17 06:43 AM Re: Kixtart,Linux and SSH [Re: Shaba1]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
SendKeys and Putty. Not prety but it does work. Now others may have better solutions.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#174740 - 2007-03-17 08:06 AM Re: Kixtart,Linux and SSH [Re: Shaba1]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Maybe TeraTerm Pro Web 3.1.3 - Enhanced Telnet/SSH2 Client? It also supports ssh and I get the impression you can run scripts via ttpmacro.exe.
Top
#174748 - 2007-03-19 11:48 AM Re: Kixtart,Linux and SSH [Re: Witto]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
From the PUTTY help file:
 Quote:
Once you have set up Plink to be able to log in to a remote server without any interactive prompting (see section 7.2.2), you can use it for lots of scripting and batch purposes. For example, to start a backup on a remote machine, you might use a command like:

plink root@myserver /etc/backups/do-backup.sh

Or perhaps you want to fetch all system log lines relating to a particular web area:

plink mysession grep /~fred/ /var/log/httpd/access.log > fredlog

Any non-interactive command you could usefully run on the server command line, you can run in a batch file using Plink in this way.

Top
#174754 - 2007-03-19 06:40 PM Re: Kixtart,Linux and SSH [Re: Richard H.]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
OpenSSH is free, standards based, and works well. I've been using it for ages, exactly like Richard illustrated. I have a script that gathers basic health status from my servers. When going to the DMZ systems, they run OpenSSH (port 22 blocked by outer bastion FW, allowed by inner bastion FW), and I can use Kix to
 Code:
SHELL '%COMSPEC% /c ssh USER@DMZCOMPUTER RmtHealth.kix >DMZCOMPUTER.LOG'
The output of the remote Kix script is redirected to the log file on the calling computer. I can then parse it as any other.

OpenSSH is also part of Cygwin, which adds most *IX tools to the windows environment.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.055 seconds in which 0.027 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org