how exec a command (ex. a cut or grep ) in anoter pc
i have IP address, login and password. (another account of unix system)
what's the sintax of command ???
es. my ip is 192.xx.xx.xx i make a exec of "ls" redirect in outpu file (> "file) in another pc ( ip 192.44.55.2xxx) (3 Replies)
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)
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)
Hello,
I am running into few issues, please suggest me what I am missing.
I am running this script on a linux host.
Main idea of this script is to, login to each host via ssh and get uid of user, service user that I trying to run this script, has already deployed ssh keys and provide sudo... (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)
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 DEBIAN
tkconch
CONCH(1)CONCH(1)NAME
tkconch - connect to SSH servers graphically
SYNOPSIS
conch [-l user] [-i identity [ -i identity ... ]] [-c cipher] [-m MAC] [-p port] [-n] [-t] [-T] [-V] [-C] [-N] [-s] [arg [...]]
conch --help
DESCRIPTION
The --help prints out a usage message to standard output.
-l, --user <user>
Log in using this user name.
-e, --escape <escape character>
Set escape character; 'none' = disable (default: ~)
-i, --identity <identity>
Add an identity file for public key authentication (default: ~/.ssh/identity)
-c, --cipher <cipher>
Cipher algorithm to use.
-m, --macs <mac>
Specify MAC algorithms for protocol version 2.
-p, --port <port>
Port to connect to.
-L, --localforward <listen-port:host:port>
Forward local port to remote address.
-R, --remoteforward <listen-port:host:port>
Forward remote port to local address.
-t, --tty
Allocate a tty even if command is given.
-n, --notty
Do not allocate a tty.
-V, --version
Display version number only.
-C, --compress
Enable compression.
-a, --ansilog
Print the received data to stdout.
-N, --noshell
Do not execute a shell or command.
-s, --subsystem
Invoke command (mandatory) as SSH2 subsystem.
--log Print the receieved data to stderr.
DESCRIPTION
Open an SSH connection to specified server, and either run the command given there or open a remote interactive shell.
AUTHOR
Written by Moshe Zadka, based on conch's help messages
REPORTING BUGS
To report a bug, visit http://twistedmatrix.com/bugs/
COPYRIGHT
Copyright (C) 2002-2008 Twisted Matrix Laboratories.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO ssh(1)
October 2002 CONCH(1)