By the gods! This did it......i was pulling out what little hair i have left. Brilliant! thank you for your clear explanation and explaining the errors in my ways
On Solaris 5.9, is there any way to pass parameter(s), via SSH, to a command defined in the remote host's authorized_keys file?
We have a menu that uses SSH to control some apps on our various hosts. I've been tasked with enhancing it and making it more secure.
So far, the local host menu... (2 Replies)
I would like to know how to pass a variable inside a variable to a function.
sample code below
--------------
for x in 1 9
do
check_null $C$x ##call function to check if the value is null
if
then
echo "line number:$var_cnt,... (2 Replies)
I'm trying to run a command over ssh to AIX 5.2, something like:
ssh machine ls
but it just hangs. I can ssh into the machine and run a command, but can't pass it like above. Is there a security setting that disables this by default? If so, how do I change it?
Thanks! (8 Replies)
Hi,
I wan to pass arguments to remote script in Unix .
For that I'm using ssh
PFB the code I'm using:
ssh -t -l osdac 10.81.33.51 "cd /appl/OSD/LOGS/flstr010/test.sh "$1" "$2""
Problem is I'm not able to pass second argument .
Can anyone plz help me in resolving this. (5 Replies)
First off we have hundreds of webservers in our farm that we sometimes have to collect logs for customers. Thing is the script that I currently am working on doesnt like my awk commands via ssh. I am very novice at best so all help would be greatly appreciated.
ssh a$active "awk... (9 Replies)
I want to do following 2 commands via script:
1) eval `ssh-agent`2) ssh-add /export/home/sufuser/.ssh/id_rsa When asked for passphrase enter "passwordpassword1234
but whenever I run the script it stucks after "ssh-add /export/home/sufuser/.ssh/id_rsa" command and asks fro... (4 Replies)
Hi Experts,
I have specific requirement where I want to pass the password with the ssh username@hostname command .
I dont want to use RSA public and private keys also. Because that will be on production server and no one wants to give access like that.
Second thing it is production... (14 Replies)
I have a below syntax its working fine...
var12=$(ps -ef | grep apache | awk '{print $2,$4}')
Im getting expected output as below:
printf "%b\n" "${VAR12}"
dell 123
dell 456
dell 457
Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
I have a variable called $a1 which maps to something like "http://servername proxy1 count http" and a lots of entries in a file on remote server.
If I have the following in my .sh script:
sed -i "\%$a1%d" mylog.txtthe line is deleted from mylog.txt. Great.
I'm trying now to remvoe this from a... (3 Replies)
Discussion started by: say170
3 Replies
LEARN ABOUT SUSE
xsession.options
Xsession.options(5) File Formats Manual Xsession.options(5)NAME
Xsession.options - configuration options for Xsession(5)DESCRIPTION
/etc/X11/Xsession.options contains a set of flags that determine some of the behavior of the Xsession(5) Bourne shell (sh(1)) script. See
the Xsession(5) manpage for further information.
Xsession.options may contain comments, which begin with a hash mark ('#') and end at the next newline, just like comments in shell scripts.
The rest of the file consists of options which are expressed as words separated by hyphens, with only one option per line. Options are
enabled by simply placing them in the file; they are disabled by prefixing the option name with 'no-'.
Available options are:
allow-failsafe
If the 'failsafe' argument is passed to the Xsession script, an emergency X session is invoked, consisting of only an x-termi-
nal-emulator(1) in the upper-left hand corner of the screen. No window manager is started. If an x-terminal-emulator program is
not available, the session exits immediately.
allow-user-resources
If users have a file called .Xresources in their home directories, these resources will be merged with the default X resources when
they log in.
allow-user-xsession
If users have an executable file called .xsession in their home directories, it can be used as the startup program for the X session
(see Xsession(5)). If the file is present but not executable, it may still be used, but is assumed to be a Bourne shell script, and
executed with sh(1).
use-session-dbus
If the dbus package is installed, the session bus will be activated at X session launch.
use-ssh-agent
If the ssh-agent(1) program is available and no agent process appears to be running already, the X session will be invoked by
exec'ing ssh-agent with the startup command, instead of the startup command directly.
All of the above options are enabled by default. Additional options may be supported by the local administrator. Xsession(5) describes
how this is accomplished.
AUTHORS
Stephen Early, Mark Eichin, and Branden Robinson developed Debian's X session handling scripts. Branden Robinson wrote this manual page.
SEE ALSO Xsession(5), ssh-agent(1), x-terminal-emulator(1)Debian Project 2004-10-31 Xsession.options(5)