Re: bad gnome-terminal or bad script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marc Williams wrote:
> I've just started exploring the Expect language and have quickly hit a
> little bit of a speed bump.  But I'm not sure it's Expect that's the
> problem.
> 
> In an FC3 gnome-terminal, I try to run the following script:
> ----------------------
> #!/usr/bin/expect --
> spawn ssh 192.168.0.9
> expect "word: "
> send "password\r"
> expect "]$ "
> interact

Do I assume that you're trying to do stuff this way in order to
experiment with Expect?

Otherwise, it would make a lot more sense to set up a passphrase-less
SSH key (assuming the point is that you don't want to enter a password
and are willing to assume the security risks [1]).

James.

[1] The risk is that if someone can get access to the script you
mentioned (say by getting physical access to the machine) or to the
private key, then they can also log into 192.168.0.9.

-- 
James Wilkinson       |  ... File not found, I'll load something *I* think
Exeter    Devon    UK |  is interesting.
E-mail address: james | 
@westexe.demon.co.uk  | 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux