- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- need help for use ssh in shell scripting
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 07:42 PM
тАО05-21-2007 07:42 PM
thnks in advance.
Solved! Go to Solution.
- Tags:
- ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 07:53 PM
тАО05-21-2007 07:53 PM
Solutionread here for more details:
http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html
or you can automate your login with expect script.
To learn about expect:
http://expect.nist.gov/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 09:20 PM
тАО05-21-2007 09:20 PM
Re: need help for use ssh in shell scripting
#!/bin/sh
ssh root@192.0.0.10;
rpm -Uvh /rpmfiles/*.rpm;
And 192.0.0.10 is the other machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 09:29 PM
тАО05-21-2007 09:29 PM
Re: need help for use ssh in shell scripting
#!/bin/sh
ssh root@12.0.0.10 rpm -Uvh /updates/rpmfileswithdependencies/*.rpm;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2007 05:35 PM
тАО05-22-2007 05:35 PM
Re: need help for use ssh in shell scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2007 08:49 PM
тАО05-22-2007 08:49 PM
Re: need help for use ssh in shell scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 12:41 AM
тАО05-23-2007 12:41 AM
Re: need help for use ssh in shell scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 12:42 AM
тАО05-23-2007 12:42 AM
Re: need help for use ssh in shell scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 03:23 AM
тАО05-23-2007 03:23 AM
Re: need help for use ssh in shell scripting
When you're back home, go to www.whatismyip.com: it's a website that reports your IP address as far as it can detect. I think it will not list your IP address as 10.0.0.2, but something else entirely.
The address displayed by www.whatismyip.com might be the address of your cable modem, ADSL router or whatever kind of network connection you're using. It might also be some device of your ISP.
If you can configure that device to forward the connections that arrive to port 22 (or some other port, if you want to be a little obscure) of the IP address shown by www.whatismyip.com to your local 10.0.0.2, you can then connect to your home computer using SSH from any place in the internet that does not block outgoing SSH connections.
WARNING: this means anyone else can try to connect to your home computer too. When you configure port forwardings like that, you're intentionally weakening the security shield provided by the NAT function. Being able to access your home computer through the internet is certainly cool, but having your computer used as a relay station for junk email or illegal activities is not fun at all.
There are worms and other malware on the internet that are constantly searching for SSH-accessible hosts with easily guessable passwords.
If you make your home computer SSH-accessible from the internet, *always* disallow direct logins as "root" user and ensure that all accessible accounts have strong passwords installed. Do this *before* you set up the port forwarding.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2007 05:03 PM
тАО05-23-2007 05:03 PM