10-06-2009
If you use the ssh tunneling (-X) then you don't have to worry about firewalls in between because it is all tunneled down the single port 22 TCP connection.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a box here that can only be accessed with telnet. now, i was wondering if anyone know of a way of which i can run a command on that box remotely. (2 Replies)
Discussion started by: Terrible
2 Replies
2. Shell Programming and Scripting
now, i have a program that i would very much prefer to run remotely as i hate having to log into the box it is on.
the problem is, every command i have tried to run this remotely doesn't work.
the commands tries to kick off the program on the remote box but then hangs.
like take for... (3 Replies)
Discussion started by: Terrible
3 Replies
3. HP-UX
hi to all,
I am installed mozilla on hp-ux machine.
That was after installing the software, i just do, the gunzip to that depot file, then untar it.
after what i have to do.
b'coz i am new to hp-ux.
i don't know which script i have to run.
thanks & regards,
Balaraju. (3 Replies)
Discussion started by: balarajum
3 Replies
4. Shell Programming and Scripting
If I run this
# ssh remote-server 'du -sk /usr/platform/`uname -i`/'
174 /usr/platform/SUNW,Sun-Fire-V245
I get my output just fine,
However, if i try to do the same but populate a local variable within my script called for example 'result'
#!/bin/ksh
result=`ssh remote-server... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
5. Solaris
Hi
Can i ask?
I had multiple solaris workstation running and some local users using it. Is it possible to bind to the local user terminal or console he's using as if like the user well type and I can see it and what my typing in the local user see it also.
Is it possible..
Thanks. (3 Replies)
Discussion started by: jao_madn
3 Replies
6. Shell Programming and Scripting
When i use ssh command to execute local script on remote server , I am unable to do it.
Please let me know how this can be done in ksh
req=abc
dte=ghd
ssh username@hostname "$req $dte" < run_script.sh (2 Replies)
Discussion started by: lalitpct
2 Replies
7. Shell Programming and Scripting
facing issue with then error while running a local script aginst a remote server. i facing the same issue in multiple scripts. So what i am missing here or what is needed.
#!/bin/ksh
echo "enter the filename"
read file
if
then
echo "file exists"
else
echo "file does not exists"
fi
... (0 Replies)
Discussion started by: NarayanaPrakash
0 Replies
8. Shell Programming and Scripting
Hello,
Please, what is the difference between running a script remotely:
ssh -t root@$machine -x "sshpass -p 'ubuntu' ssh -t ubuntu@$address -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/nul -x './c-launch.sh'"
and running a script directly on the host:
... (1 Reply)
Discussion started by: chercheur111
1 Replies
9. Shell Programming and Scripting
Hi all.
I need a bash script to run a function remotely. I think it should be similar to the following but can't figure out the exact syntax.
Here is the script:
#!/bin/bash
function nu ()
{
for var in {0..5}; do printf "$var, "; done; echo
}
ssh host "$(typeset -f); nu"
... (9 Replies)
Discussion started by: ziguy
9 Replies
10. UNIX for Beginners Questions & Answers
Dear Experts,
I have found this script on internet that can be used to execute local script remotely
#!/bin/bash
# runremote.sh
# usage: runremote.sh localscript remoteuser remotehost arg1 arg2 ...
realscript=$1
user=$2
host=$3
shift 3
# escape the arguments
declare -a args
... (4 Replies)
Discussion started by: mukulverma2408
4 Replies
LEARN ABOUT DEBIAN
dns2tcpc
dns2tcpc(1) General Commands Manual dns2tcpc(1)
NAME
dns2tcpc - A tunneling tool that encapsulate TCP traffic over DNS.
SYNOPSIS
dns2tcpc [ -h ] [ -c ] [ -z domain zone ] [ -d debug_level ] [ -r resource ] [ -k key ] [ -f config_file ] [ -e command ] [ -T request type
] [ -l local_port ] [ server ]
DESCRIPTION
dns2tcpc is a network tool used to encapsulate TCP communications in DNS. When connections are received on a specific port all TCP traffic
is sent to the remote dns2tcpd server and forwarded to a specific host and port. Multiple connections are supported.
dns2tcpc was written for demonstration purposes.
OPTIONS
-h Help Menu
-c Enable DNS compression. When used, be sure that all relay and DNS server support compression and really use it.
-z domain zone
Use this domain as endpoint.
-d debug level
Change debug level. Levels available are 1, 2 or 3.
-r resource
Remote resource to access.
-k key Pre shared key used for authentication (identification).
-f config file
Configuration file to use.
-T request type
Request type to use. Actually only KEY and TXT requests are supported.
-e command
Command to execute, I/O are redirected in the tunnel.
-l local_port
Local port accepting incomming connections (or - for stdin on UNIX systems).
-t connection timeout
Maximum DNS server's answer delay in seconds. A valid delay is between 1 and 240 seconds. Default is 3.
server DNS server to use. The first entry in resolv.conf file will be choosen if the server is not specified.
CONFIGURATION FILES
By default ${HOME}/.dns2tcprc is used if no configuration file is specified. Here is an example :
domain = dns2tcp.hsc.fr
resource = ssltunnel
local_port = 4430
enable_compression = 0
debug_level = 1
key = mykey
# DNS to use
server = ns.hsc.fr
EXAMPLES
dns2tcpc -k mykey -z dns2tcp.hsc.fr mydns
Ask the dns2tcp server to list available resources.
ssh -o 'ProxyCommand dns2tcpc -r ssh -l - -z dns2tcp.hsc.fr -k mykey mydns' myserver
Use dns2tcp as a proxy command with ssh. We try to connect to the ssh resource with the key 'mykey' and the DNS mydns.
dns2tcpc -r socat-resource -e '/bin/bash -i' -k mykey -z dns2tcp.hsc.fr mydns
Use dns2tcp as a reverse shell, the remote shell will appear on the socat-resource.
dns2tcpc -d 1 -f /dev/null -r ssl-tunnel -l 2000 -k mykey -T KEY -z dns2tcp.hsc.fr mydns
Do not use the default configuration file, bind local port 2000 and forward all the traffic on the remote ssl-tunnel resource, use
the first debug level. Use KEY type DNS requests.
AUTHORS
Olivier Dembour <olivier.dembour@hsc.fr>
SEE ALSO
ssltunnel
dns2tcpc(1)