i need to automate ssh login to a server with tcl and expect.
It works. The only problem that i have, is that I don't want
type password each time I try to connect, and I can't use the
DSA SSH keys to use keys instead of password, because my sysadmin
has blocked it.
So I can put my password in my tcl source code, but write it
in plain text is not correct. I need some piece of codes,
some extensione or some ideas to write my password in a
cryptic form, then tcl can read it, decrypt and send to ssh
server.
Bye.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
How secure does this have to be? Is it enough to have a somewhat encrypted
version of the password so that someone else won't be able to guess it
directly, or does it have to be REALLY secure?
If it's something simple, maybe just base-64 encoding and reversing the
password would work? That way, the length and the string are different, and
a simple guess won't work.
Mattias
In that case the password will be ASCII85 encoded with some prefix and
suffix code. But then again it would be pretty decodable by sourcing it
with Tcl and [info vars]. Unless you'd strip the tbc code and call
revelant function yourself.
Anything that can be read by the script without any additional information
will also be readable by others (or at least root). If you can live with
that, then just do a ~/.sshpass with 0700 permission and there's no real
better way. I do not consider security by obscurity a good choice.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/