|
|
open stuff remotely
I tried this using something similar:
works quite well.Unfortunately many of the machiens I want to talk to don't seem to have SSH_CONNECTION. They have SSH_CLIENT but that doesn't have the remote machiens IP number. So I'll have to add stuff to my login scripts. Nice idea though.
Same issue here: only SSH_CLIENT is defined
From it we can get the Mac's address, but not the host. Is there a unix command that will return the address of the host?
Same issue here: only SSH_CLIENT is defined
This depends on the type of *nix.
I found that our Solaris servers provided neither REMOTEHOST nor any SSH environment variable. *Very annoying* Try 'printenv' to see what's available, or better:
printenv | sort | more
This may work, too:
SSH_HOST_ADDRESS=`host $HOST | cut -f4 -d" "`
or
SSH_HOST_ADDRESS=`host $HOSTNAME | cut -f4 -d" "`
depending on which (if either) is available. This is the best hint I've seen in a very long time. I've been making do with BBOpen (using plain ftp and an ssh tunnel) for several years. This is much more sensible. Thanks.
Same issue here: only SSH_CLIENT is defined
This is what I use to get REMOTEHOST |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.13 seconds |
|