Facing_problem_with_ssh


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Facing_problem_with_ssh
# 8  
Old 05-19-2015
Hi Bakunin,

Thanks for your response.

Code:
-n   Redirects stdin from /dev/null (actually, prevents
               reading from stdin).  This must be used when ssh is run
               in the background.  A common trick is to use this to
               run X11 programs on a remote machine.  For example, ssh
               -n shadows.cs.hut.fi emacs & will start an emacs on
               shadows.cs.hut.fi, and the X11 connection will be
               automatically forwarded over an encrypted channel.  The
               ssh program will be put in the background.

Code:
            (This does
               not work if ssh needs to ask for a password or
               passphrase; see also the -f option.)

As i am a newbie, please correct me if i understood in wrong, it says that it doesnt support when it prompts for password

even though i tried with -n option, i got the errors

Code:
ssh -nv username@hostaddress "cd /full/path/to/exec/files/; nohup ./execfile1 &"

Code:
Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so):   0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).
        0509-026 System error: A file or directory in the path name does not exist.

Code:
Pseudo-terminal will not be allocated because stdin is not a terminal.
stty: tcgetattr: A specified file does not support the ioctl system call.

but i can see the execution when
Code:
ssh -nv username@hostaddress "cd /full/path/to/exec/files/; ls -lrt execfile1"

d[ICODE]ebug1: Sending command: cd /app/venkat; ls -lrt execfile1
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
-rwxrwxr-x 1 venkat venkatesh 16817007 Jan 05 2009 execfile1
[/CODE]
o/p of file execfile1 is
Code:
executable (RISC System/6000) or object module not stripped

please help.

venkat

Moderator's Comments:
Mod Comment edit by bakunin: Please do NOT use "ICODE"-tags when posting multiline code. ICODE-tags are only for one or few words, like i.e. "use sed to achieve this". Thank you.

Last edited by bakunin; 05-19-2015 at 10:22 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question