Search Results

Search: Posts Made By: doonan_79
Forum: Programming 05-01-2012
7,978
Posted By Skrynesaver
You can disallow ChallengeResponseAuthentication...
You can disallow ChallengeResponseAuthentication in ssh_config or ssd_config on the server you should default to key based auth only
Forum: Programming 05-01-2012
7,978
Posted By neutronscott
There are options to only allow public key auth. ...
There are options to only allow public key auth. Use those options and test for success.


if ssh -o BatchMode=yes "$hostname" true 2>/dev/null; then
echo "it works"
else
...
Forum: Programming 04-27-2012
7,057
Posted By Corona688
I'll explain what the various parts do better. ...
I'll explain what the various parts do better. -s tells it to read from standard input even when arguments are given, so it assumes arguments are arguments ($1 $2 $3) instead of files.

Try this...
Forum: Programming 04-27-2012
7,057
Posted By neutronscott
You're just having problem to pass parameters to...
You're just having problem to pass parameters to shell. If you give -s then the shell expects script from stdin, and will take your arguments:



[mute@geek ~]$ ssh mute@localhost "/bin/sh -s --...
Forum: Programming 04-27-2012
5,346
Posted By jim mcnamara
Either scp and script and at or batch it using...
Either scp and script and at or batch it using ssh on the remote machine, or put the entire command inside single tics (red):

nohup ssh $i_hostname ' exec /usr/bin/ksh -s << EOF >> $AS_STOPSAP_LOG...
Forum: Programming 04-26-2012
14,726
Posted By Corona688
That would call the function locally, and feed...
That would call the function locally, and feed its output into ssh.

Still, you cannot, since functions aren't exported across ssh calls. It's like running a fresh script. It knows nothing about...
Forum: Solaris 04-29-2009
19,682
Posted By ProGrammar
you're the man!
Pludi,

That was educating. Particularly when you underscored that find recognized the current working directory as a directory itself and pruned itself.

So comparing . (cwd) vs ./* (contents...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 07:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy