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 > Shell Programming and Scripting
.
google unix.com



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
problem in making sftp script girish.batra Shell Programming and Scripting 8 01-07-2009 06:28 AM
Problem using sftp Jamil Qadir UNIX for Advanced & Expert Users 1 03-28-2008 11:33 AM
sftp problem UBD Shell Programming and Scripting 1 12-12-2007 12:59 PM
sftp problem borncrazy Shell Programming and Scripting 2 06-05-2007 12:46 AM
sftp problem sudojo Security 0 08-30-2002 05:37 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-17-2008
Krrishv Krrishv is offline
Registered User
  
 

Join Date: Dec 2006
Location: CA,United States
Posts: 186
problem with SFTP

Hi,

I am doing a FTP from a Unix host to a windows host. I have generated the key in my unix server and added them in the destination host. In the Destination they changed the ip address now i am not able to connect. I can see it is reaching till that server but i am not receiving that server certificate. Below is the error message.

firenze$ /Application/PSOFT/.ssh:/opt/boksm/bin/sftp -o port=9900 ext-amat@158.156.156.86
Connecting to 158.156.156.86...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b1:e3:43:b0:a4:57:cf:65:9c:cc:85:9e:e1:98:f7:41.
Please contact your system administrator.
Add correct host key in /Application/PSOFT/.ssh/known_hosts to get rid of this message.
Offending key in /Application/PSOFT/.ssh/known_hosts:6
RSA host key for 158.156.156.86 has changed and you have requested strict checking.
Host key verification failed.
Connection closed
firenze$ /Application/PSOFT/.ssh:
  #2 (permalink)  
Old 03-17-2008
danmero danmero is online now Forum Advisor  
  
 

Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,371
Code:
sed -i .bak '6d' /Application/PSOFT/.ssh/known_hosts && rm /Application/PSOFT/.ssh/known_hosts.bak
If your sed don't support -i option get back to us.
  #3 (permalink)  
Old 03-20-2008
Krrishv Krrishv is offline
Registered User
  
 

Join Date: Dec 2006
Location: CA,United States
Posts: 186
Sftp

Hi,

I am still not able to connect to destination windows system. I have generatated a public key from my unix server private key using openssl and installed in the destination windows system. But i still not able to do sftp. Do i have to install the generated pem key in my unix server also.

firenze$ /Application/PSOFT/.ssh:/opt/boksm/bin/sftp -o port=9900 ext-amat@158.156.156.86
Connecting to 158.156.156.86...
ssh: connect to host 158.156.156.86 port 9900: Connection refused
Connection closed
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 12:21 PM.


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