Use the full path of ssh in that case
Please make sure the variable IPLIST is populated correctly with the required IP address only separated by space as shown in the previous post.
Also, why did you use $1 in your code?
Hi,
Would like to ask the experts if anyone knows how to run a script like this:
dtterm -title shell1
run process1 on shell1
dtterm -title shell2
run process2 on shell2
cheers!
p/s: sorry if i used the wrong forum, quite concussed after watching world cup for several nights; but I... (2 Replies)
Hello,
After seeing in a Unix cheatsheet that I could add commands into a file and run that file as a command to save on typing, i tried it with this:
#! /bin/csh
# Backup website excluding directories that do not change
rsync -e "ssh -p 2222" -axzvc --progress --stats --compress-level=9... (9 Replies)
Hey,
I have finally made a command that works and now has to run it on 200+ files to run it on.
How do I do that?
Just fyi and if it complicates anything my commandline is:
awk '{if ($1 ~ /1/) print $2}' file
(yup, is should print $2 if $1 is a certain value)
It doesn't work when I: ... (2 Replies)
I have the following script running with nohup on one of my servers:
#!/bin/bash
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#set log number
#i=1
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#Check if log exits, if so incrememnt log number up so we don't clobber
#while... (8 Replies)
In my cronjob, I would like to schedule my script.sh to run every minutes. I crontab -e and have in line below but it didn't seems to run at all.
* * * * * script.sh
When I run it manually, I can run it. Is that anything wrong with the above line?
If I change it to something like below,... (4 Replies)
Hello all,
I'm trying to write a script to gather and send data and it works just fine at the bash command line, but when executing from CRON, it does not run properly.
My scripting skills are pretty limited and there's probably a better way, but as I said it works at the command line, but... (12 Replies)
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
I have to provide a listing of all usernames and group assignments on Linux servers running SLES 12 SP 3. I am trying to automate this via a #for loop. It is not doing as desired and could use a little assistance. Here is the code:
#!/bin/bash
for uname in 'cat $(hostname)_unlist.txt'
do... (8 Replies)
Discussion started by: Kentlee65
8 Replies
LEARN ABOUT MOJAVE
ssh-keychain
SSH-KEYCHAIN(8) BSD System Manager's Manual SSH-KEYCHAIN(8)NAME
ssh-keychain.dylib -- smartcard/keychain support library
DESCRIPTION
The ssh-keychain.dylib library is used as a PKCS11 module replacement for the family of ssh tools. It provides certificates on SmartCards
and/or in user keychains to the tools.
OVERVIEW
By default, all valid certificates from all SmartCards currently inserted into attached readers are provided. Manual configuration of
ssh-keychain.dylib is required if certificates in user keychains are desired, or if there is a need to limit which SmartCard certificates are
provided. The public key hash is used to select which certificates should be provided. This hash is usually in hexadecimal string form,
without the leading 0x. To determine the hash for certificate on a SmartCard, the sc_auth hash or sc_auth identities commands can be used.
For certificates in user keychains, it is the value of the hpky attribute from security find-certificate output.
ENVIRONMENT
Configuration passed through the environment always takes precedence over the configuration file. The variable KEYCHAIN_CERTIFICATES is used
to specify hashes. It should contain a semicolon-separated list of public key hashes of certificates which will be provided to the ssh tools.
CONFIG FILE
If no enviroment variable configuration is provided, ssh-keychain.dylib looks for a configuration file located at ~/.ssh/sshkeychain.plist.
This file is a standard property-list with a dictionary root object. It should contain the key KeychainCertificates with a value that is
either a string or an array of strings. If a string, then the expected value is semicolon-separated list of public key hashes like the envi-
ronment variable. If the value is an array, then each hash is an array entry.
EXAMPLES
Environment:
KEYCHAIN_CERTIFICATES="AE31125DA4AAA294A4FED97B815D7F8DD1A78FF3;168D2C4CDDFCDADD465BAF3E6BCFE8193D8D42D1"
ssh -o PKCS11Provider=/usr/lib/ssh-keychain.dylib machine
Configuration plist:
{
"KeychainCertificates" => [
0 => "AE31125DA4AAA294A4FED97B815D7F8DD1A78FF3"
1 => "168D2C4CDDFCDADD465BAF3E6BCFE8193D8D42D1"
]
}
FILES
~/.ssh/sshkeychain.plist
SEE ALSO sc_auth(8), ssh-add(1), ssh_config(5)Darwin June 1, 2019 Darwin