regarding advance logon features [4]

regarding advance logon features

Tuesday, January 22, 2008 1:20 AM - Israel Diaz

Hi there,
I'm starting to use a xshell trial version, and found no way to do some issues than with expect on Linux can do.
Dooes any know about to use the advance logon features and use "Wait" field to store it in a variable after?

i.e.

When I'm using automatic logon, in order to create the X display tunneling I've to catch follow line:

xauth add 10.200.11.3:10 MIT-MAGIC-COOKIE-1 1d08564f67d41817d11ca04fb54206a4

I need to keep the line in order to:

1. run entire line.

$ xauth add 10.200.11.3:10 MIT-MAGIC-COOKIE-1 1d08564f67d41817d11ca04fb54206a4

2. And then, set DISPLAY variable as follow:
$ setenv DISPLAY 10.200.11.3:10


Re: regarding advance logon features

Tuesday, January 22, 2008 2:40 PM - Support

There is no need to create X display tunneling to use X applications in the remote server. Xshell does this for you.

If this is not the problem, could you tell us about the problem in more detail and what you are trying to do?


---
Technical Support


Re: Re: regarding advance logon features

Monday, January 28, 2008 5:12 AM - Israel Diaz

Hi there,

Well, I know that you told me, the issue is that I've to jump through 3 servers.

(me)->(srv1)->(srv2)->(host)
0 1 2 3


Some hosts (3) does not have ssh those use telnet instead (when 3 is ssh there is no problem), srv2 use this xauth send it to me in order to use it and X-tunnel be completed.

the point here is that I would like to have totally automaized the log on process.

Can do that ?

Regards,
IMDJ


Re: Re: Re: regarding advance logon features

Monday, January 28, 2008 5:25 AM - Israel Diaz

Hi there again,

This is what I want to do (this actually I'm doing with Linux machine using expect):


1. expect " xauth*\n"
2. scan $expect_out(0,string) "%s %s %s %s %s" a b c d e
3. expect "ogin:"
4. send "$Username\n"
5. expect "assword:"
6. send "$Password\n"
7. expect ">"
8 send "$a $b $c $d $e\n"
9 expect ">"
10. send "setenv DISPLAY $c.0\n"

The explanation:

1. To try it to get xauth line
2. store in variables each line argument.
3 & 5. wait for login and password.
4 & 6. send login and password.
7. which prompt do I expect.
8. send whole xauth line.
9. which prompt do I expect.
10. use just one argument in order to have DISPLAY value.

Regards,
IMDJ


Re: Re: Re: Re: regarding advance logon features

Monday, January 28, 2008 6:02 PM - Support

Thank you for the post. This feature is not yet supported in Xshell. But, we hope to support this feature in the future.


---
Technical Support


Previous views: 287