The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
'df -k .' on remote server dddkiran Shell Programming and Scripting 1 11-03-2008 07:19 AM
how do I make my workstation an installation server for a remote server?. calsum SUN Solaris 3 04-18-2008 03:54 PM
Transfer file from local unix server to remote server indira Shell Programming and Scripting 2 05-03-2007 06:35 AM
Transfer file from local unix server to remote server indira HP-UX 2 05-02-2007 05:15 PM
FTP multiple files from remote server to local server berlin_germany Shell Programming and Scripting 2 12-20-2006 02:24 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-01-2009
Registered User
 

Join Date: Feb 2008
Posts: 4
Remote server

I want to manipulate files that are present on another server.

I tried telnet. I get the following error:
Connection to <hostname> closed by foreign host.

I need to do this through a KSH. Any help is appreciated!

Thanks,
Edison
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-02-2009
Lazydog's Avatar
Registered User
 

Join Date: Oct 2008
Location: Chester Co., PA
Posts: 69
That means you are not allowed to telnet to that server.
Have you tried to ssh to it?
Reply With Quote
  #3 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Feb 2008
Posts: 4
I have not tried ssh. Do we need anything installed on the UNIX server in order to be able to SSH?
Reply With Quote
  #4 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,464
Yes, an ssh daemon like openssl's sshd. This is very, very common however, I would be suprised if a UNIX server didn't have something like that installed, even if maybe disabled. Just try logging in with ssh and see if it works, it easily could.
Reply With Quote
  #5 (permalink)  
Old 01-06-2009
Registered User
 

Join Date: Feb 2008
Posts: 4
Could you please give me a command?

Since I am running a script i do not want the remote server to prompt for a password.
Reply With Quote
  #6 (permalink)  
Old 01-07-2009
Lazydog's Avatar
Registered User
 

Join Date: Oct 2008
Location: Chester Co., PA
Posts: 69
If you don't want ssh to prompt for a password then you should setup keys between the client and the server. A quick Google search should give you all the information you require to set this up.
Reply With Quote
  #7 (permalink)  
Old 01-07-2009
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,464
Quote:
Originally Posted by edisonantus View Post
Could you please give me a command?

Since I am running a script i do not want the remote server to prompt for a password.
The command is simply ssh. It is used like:
Code:
ssh username@hostname 'command to execute'
If you omit any command to be executed, you get an interactive shell.

Like Lazydog says, logging in without a password is something you must set up in advance. This involves generating a public/private key pair and placing it on the server so the server and client can recognize each other. Once this is done, you will be able to run the command without any special parameters and login without a password. Hunt for ~/.ssh/authorized_keys in ssh's manpage.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 10:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66