![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to connect unix server to unix server through shell scripts | phatan | Shell Programming and Scripting | 2 | 06-19-2008 05:30 AM |
| Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server | madhunk | UNIX for Dummies Questions & Answers | 5 | 01-31-2008 01:30 PM |
| How to share CGI Scripts across UNIX web server? | karlsworld | UNIX for Dummies Questions & Answers | 5 | 02-06-2007 10:25 AM |
| How to share CGI Scripts across UNIX web server? | karlsworld | Shell Programming and Scripting | 1 | 02-05-2007 09:32 PM |
| How to connect unix server via web | max_san007 | UNIX for Dummies Questions & Answers | 3 | 11-17-2006 01:46 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to connect unix server to unix server through shell scripts
Hi,
I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. with simple example please. Thanks in advance, Phatn ![]() |
|
||||
|
Quote:
if you would like to ssh from 1st server to 2nd server 1.Login into 2nd server using the 2ndserveruser and create a directory named .ssh (note . before ssh) under the home directory . 2. Login into 1st server and go to .ssh directory. 3. Run the following command from this directory ssh-keygen -t rsa This would prompt for the filename to which the key to be stored.A default value is given in brackets as id_rsa. So just press RETURN to continue. Next it would ask for Passphrase. Press RETURN to continue. Again it would ask for same passphrase again. Again press RETURN to continue.This would generate key pair and stores it in id_rsa file. 4.Exit from this .ssh directory (cd ..)and go back to home directory.From the home directory run the following command: cat .ssh/id_rsa.pub|ssh 2ndserveruser@2ndserverIP 'cat >> .ssh/authorized_keys' |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|