Hi,
I am having nightmare issue-ing remote ssh command from a CGI perl script.
It just won't run on debug message: It says permission denied. Can I even do this? as the apache server running under DAEMON account probably can't execute it? Is this the case of what's going on?
Here is my... (3 Replies)
Hi all,
I am facing the following issue:
Host A should execute a remote command (say pwd) on host B2.
B2 is not directly reacheable but you have to connect from a to B1, then from B1 you can execute the command ssh user@B2 pwd.
B1 and B2 are directly connected:
A => B1 => B2
| ... (3 Replies)
Help please!!
I want to use ssh to execute a remote exe and while it's running I want to query for the process ID of the exe (2 different ssh commands)
1. sshpass -p "<passwd>" ssh -f -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@<ipaddress> nohup /tmp/mmds_asyn &
2.... (0 Replies)
Hi,
I need a script that will connect to a list of servers and first sudo to root and then run a couple of commands.
For security reasons, we can't setup ssh keys as root.
Manually I have to login to a server as user and then sudo to root.
It's not possible to use root@servername , because of... (8 Replies)
Hi,
The below command is not giving me the count , Can somebody help me in re-writing this pls .
Proc_Exist=`ssh -q -o "BatchMode=yes" -o "PasswordAuthentication=no" $OAUSER@${Primary_Node} ps -ef |
grep -v grep | grep "${ICM_Proc}" |wc -l `
Also the same problem with below... (13 Replies)
How should i make the following code working
#!/bin/bash
INPUTFILE="test.txt"
while read STRING; do
IP=`host -t A $STRING | awk '{print $NF}'`
HOSTNAME=`ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no $IP "hostname"`
echo $HOSTNAME > out.txt
done < $INPUTFILE
At this moment while... (3 Replies)
Hi,
My goal is to connect from unix server A to windows server B and call a bat file on windows.
I am able to succeed in remoting to windows and executing a command, the issue i am facing is the shell scrip is exiting without making sure of bat file success.
Can you please help me in... (4 Replies)
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
How to execute setDomainEnv.sh in wblogic via ssh on remote server in shell script
we execute setDomainEnv.sh manually as . ./setDomainEnv.sh from its location ie /opt/SP/users/domian/bin"
My approach is not working.
Please advise.
#!/bin/bash
set -x
base="/opt/SP/users/d1/bin"... (5 Replies)
Discussion started by: abhaydas
5 Replies
LEARN ABOUT OSF1
llogin
llogin(1) General Commands Manual llogin(1)NAME
llogin - Connects to a LAT service
SYNOPSIS
/usr/sbin/llogin -d | service [-p tty] [-H rem_node] [-R rem_port] [-wpassword | -W]
OPTIONS
Displays a list of learned services including the node name and rating. Specifies a local LAT tty device (tty) to use to connect to ser-
vice. Either SVR4 or BSD tty devices can be specified. However, the tty device must already exist and be available for use.
If no tty device is specified, llogin uses any available SVR4 tty device. If no available devices are found, llogin creates an SVR4
LAT tty device for the user. When llogin exits, the created tty device is removed. Specifies a remote host (rem_node) that offers
service. This is helpful when more than one host offers a service. Specifies a remote port (rem_port) that offers service. Speci-
fies a password for connecting to service when the remote service has password checking enabled. The password is not case sensitive
and spaces are not allowed.
If you use the -w option, you specify the password on the command line; it is visible. If you use the -W option, you are prompted
for the password; it is not echoed (visible).
DESCRIPTION
The llogin command enables Tru64 UNIX users to connect to LAT services offered by other nodes in the local area network (LAN). You do not
need superuser privileges or node information in order to connect to LAT services.
If you do not know what services are known to your local node, use the llogin -d command.
If you want to perform simultaneous llogin connections, use the llogin -p command.
To make the llogin connection establishment quicker, add the target hostname as a remote service by using the latcp command.
EXAMPLES
The following command initiates a connection to service siteapp on any node and port through any local LAT tty device: llogin siteapp The
following command initiates a connection to service siteapp on any node and port through local LAT tty device 620: llogin siteapp -p 620
The following command initiates a connection to service siteapp on any remote port on host HOSTX through local LAT tty device 620: llogin
siteapp -p 620 -H HOSTX The following command initiates a connection to service siteapp on remote port TTY_Z on host HOSTX through local
LAT tty device 620: llogin siteapp -p 620 -H HOSTX -R TTY_Z
SEE ALSO
Commands: latcp(8)
Network Information: lat_intro(7)llogin(1)