Re: Spawning a Secure Xterm
- From: claird@xxxxxxxxx (Cameron Laird)
- Date: Sat, 30 Dec 2006 21:39:02 +0000
In article <1167509031.806024.164210@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<tom.rectenwald@xxxxxxxxx> wrote:
.
.
.
2) exec xterm -e "expect (expect commands above).
I found that by running an exec, I could pass the Expect commands
without having to use a file. However, in a 'ps' listing, everything
shows... including the password.
I tried to compile/obfuscate the $ssh_file code via freewrap and shc,
but it looks like one is geared towards pure Tcl and doesn't handle
Expect commands, and the other is for shell scripts. Running the
Expect within a #!/bin/sh via an exec command didn't work either, would
not execute the compiled code.
Now I'm starting to hope there may be an easier way to do this. My
goal is to spawn an Xterm, automatically SSH out to another system, and
pass the password. The environment that I'm working in does not allow
for Authenticated Keys... so this is pretty much the only way I can do
it. I just want to ensure that it is as secure as possible.
Any help would be appreciated, I'll be glad to post/send the actual
code if it helps. I do have it working, in a fashion, by using method
1, but am hoping there is a more secure way to run it. Also hoping
that it is proper etiquette to post Expect stuff in this Tcl group, if
not, please let me know.
.
.
You're sort of stuck. Passwords are a risk; someone
decided that "[t]he environment that I'm working in
does not allow for Authenticated Keys ...", so there
are serious limits on how much you can improve the
situation.
It *is* possible to compile/obfuscate Expect, but,
the last time I did it, it took a fair amount of
work. Is your manager willing to pay for another
day of your time to obfuscate the password? Another
week?
I think you've taken the steps that are reasonable
and prudent, and should do more only with explicit
authorization to spend your time that way.
.
- References:
- Spawning a Secure Xterm
- From: tom . rectenwald
- Spawning a Secure Xterm
- Prev by Date: Re: Spawning a Secure Xterm
- Next by Date: Re: Tcl faster than Perl/Python...but only with tricks...
- Previous by thread: Re: Spawning a Secure Xterm
- Next by thread: unicode normalization
- Index(es):
Relevant Pages
|