Re: Read User Input using X



On Tue, 29 Aug 2006 10:06:56 -0700, ztuffaha@xxxxxxxxx wrote:

I am new to this so please bear with me. I have created a java
application on a UNIX server. For windows users, I have created a
Cygwin shortcut which will start Xwindows and connect (using ssh) to
the UNIX server and run the application.

My problem is: when I do ssh to the UNIX machine, the server will take
the $USERNAME as the login name to access the unix machine? I would
like to create something like an xmessage that will prompt the user to
enter a username (typed by the user) and then pass it to the server. Or
let ssh ask for the username ( I was not able to do that either.. it
will automatically take the $USERNAME).

[jon@jonspc Pan]$ ssh --help
usage: ssh [-1246AaCfghkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
[-D port] [-e escape_char] [-F configfile] [-i identity_file]
[-L port:host:hostport] [-l login_name] [-m mac_spec] [-o option]
[-p port] [-R port:host:hostport] [-S ctl] [user@]hostname [command]

My ssh client has "-l login_name" or supports user@host. Does the cygwin
client not support this, I have no means to check ?

Or you could use username@domain as the argument to ssh. So for an X
application that would be ssh -X "fred@xxxxxxxxxxxxxxxxxxxxxx"

Cygwin has bash available and as you say Xmessage. You can prompt for a
username or read the windows username from the local windows environment.

I dont have a windows box to hand but from memory the username is
available in the shell on windows2000 and above.

Jon


.



Relevant Pages

  • Re: Read User Input using X
    ... from a common windows computer to my application. ... username@server" where username is a windows environment variable. ... So I want an option that will peform ssh to the server. ...
    (comp.os.linux.x)
  • Re: Read User Input using X
    ... from a common windows computer to my application. ... username@server" where username is a windows environment variable. ... So I want an option that will peform ssh to the server. ...
    (comp.os.linux.x)
  • connect to ftp
    ... i need advice on how to make scp or ftp connection from a windows pc to a ... unix server. ... The program will ask for username and password and then run in ...
    (comp.lang.c)
  • Re: connect to ftp
    ... directory in windows to a directory in the unix server at a predefined time. ... >> i need advice on how to make scp or ftp connection from a windows pc to ... The program will ask for username and password and then run ...
    (comp.lang.c)
  • Read User Input using X
    ... the UNIX server and run the application. ... when I do ssh to the UNIX machine, ... enter a username and then pass it to the server. ... can I read input from xmessage? ...
    (comp.os.linux.x)