Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

RE: Multiple modes? throught one connection

Subject: RE: Multiple modes? throught one connection
Date: Mon, 20 Sep 2004 14:02:43 +1000 (EST)
On Tue, 14 Sep 2004, Binoni MARTIN wrote:

Well... I cannot understand why you do not do smth like this (Perl):

        my $pass = blahblahblah
        ...
        exec (ssh ...password = $pass ... )
        exec (scp ...password = $pass ... )

...and have anyone on the machine who does "ps -auxwww" see my password? Thanks, but no thanks.


Whoever suggested piping the script into ssh solved my problem. What I'm trying to do at the moment is have a single script that I run once, which logs into a new server with only a base OS install on it, and set it up the way I want it. At the moment, this works, but asks for the password twice. But I'm sure that you can see from this why the other suggestions, (good as they were, especially the ssh-agent one) don't fit my current problem, although they solve problems that I've had other times (and will hopefully now never be problems again, thanks to you people).

        Thanks all,


--
Tim Nelson
Server Administrator
WebAlive Technologies Global
Level 1 Innovation Building, Digital Harbour
1010 LaTrobe Street
Docklands, Melbourne, Vic, 3008
Phone: +61 3 9934 0812
Fax: +61 3 9934 0899
E-mail: tim.nelson@webalive.biz
http://www.webalive.biz/
<Prev in Thread] Current Thread [Next in Thread>