LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-21-2010, 08:16 AM   #1
smartgupta
Member
 
Registered: Sep 2008
Posts: 81

Rep: Reputation: 15
Question Putty Fatal error: server unexpectedly closed network connection.


Hi All,

I had written two scripts and then trying to execute it remotely from windows to ESXi 4.0 which is linux based.Now the problem is that one script is working fine and performing as expected but when I am using the same script with some modification,I am unable to connect and execute it-
Quote:
C:\Demo\test>c:\Demo\putty.exe root@IP of Machine on which I want to execute the script remotely -pw xxxxx -m c:\Demo\test\test.sh
giving the following error--
Quote:
Putty Fatal error: server unexpectedly closed network connection.
I am executing it from same system..Please help me because I'm running out of ideas.
Any suggestions would be appreciated....
 
Old 12-22-2010, 10:14 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
What are the with some modification you made? What are the dependencies of with some modification? Since it works before you added with some modification I suspect the culprit is something added with some modification. Do you have a way to increase verbosity of with some modification? You should be able to add set -x to top of the script, before any of your script commands run, since and get output of the script's action(s) since it looks like you are using a bash (.sh) script.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putty:server unexpectedly closed network connection dyool Ubuntu 8 03-07-2012 09:35 PM
Putty fatal error: Network error: connection refused (ubunty server 6.06.1) gerardnijboer Ubuntu 2 03-18-2010 04:46 PM
ssh problem "server unexpectedly closed network connection" sunilvadranapu SUSE / openSUSE 7 02-10-2010 03:43 AM
Putty: server unexpectedly closed network connection Dshah Linux - Server 2 12-20-2009 10:57 AM
Different SSH "Server unexpectedly closed network connection" (using Putty) mjwraw Linux - Networking 4 07-22-2009 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration