The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 08: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 03:24 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-01-2009
edisonantus edisonantus is offline
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
  #2 (permalink)  
Old 01-03-2009
Lazydog's Avatar
Lazydog Lazydog is offline
Registered User
  
 

Join Date: Oct 2008
Location: Chester Co., PA
Posts: 73
That means you are not allowed to telnet to that server.
Have you tried to ssh to it?
  #3 (permalink)  
Old 01-06-2009
edisonantus edisonantus is offline
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?
  #4 (permalink)  
Old 01-06-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
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.
  #5 (permalink)  
Old 01-07-2009
edisonantus edisonantus is offline
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.
  #6 (permalink)  
Old 01-07-2009
Lazydog's Avatar
Lazydog Lazydog is offline
Registered User
  
 

Join Date: Oct 2008
Location: Chester Co., PA
Posts: 73
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.
  #7 (permalink)  
Old 01-07-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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