473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Re: ssh problem using paramiko?


I couldn't find any good source for download Openssh on the net?
Would you please introduce a URL for download that?
Steve Holden-5 wrote:
>
sa6113 wrote:
>I use this code :
import paramiko
import socket

hostname = "192.168.1.4"
username = "test"
port = 22
password = ''123456"

# now connect
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((hostname, port))
except Exception, e:
print 'Connect failed: ' + str(e)
traceback.print_exc()
sys.exit(1)

------------------
and I got this error :
sock.connect((hostname, port))
File "<string>", line 1 , in connect
error:(10061 ,'Connection refused')
-------------------
what is the problem?
I have a computer with this Ip and username , password in my network.
Do I have to install ssh or somthing else in that computer(server) or run
any script?

Yes, 192.168.1.4 should have an ssh daemon (normally sshd) running and
listening on port 22. It's fairly easy software to install.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

--
http://mail.python.org/mailman/listinfo/python-list

--
View this message in context: http://www.nabble.com/ssh-problem-us...p19875248.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Oct 8 '08 #1
4 2673
sa6113 wrote:
>
I couldn't find any good source for download Openssh on the net?
Would you please introduce a URL for download that?
http://www.vapor.com/amtelnet/

it supports only SSHv1, but I guess that's ok.

Diez
Oct 8 '08 #2
Diez B. Roggisch wrote:
sa6113 wrote:
>I couldn't find any good source for download Openssh on the net?
Would you please introduce a URL for download that?

http://www.vapor.com/amtelnet/

it supports only SSHv1, but I guess that's ok.
No, you really don't want to use SSHv1. Amtelnet won't do, it's an SSH
*server* the OP needs, I understand. Why not openssh.org?

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Oct 8 '08 #3
Steve Holden wrote:
Diez B. Roggisch wrote:
>sa6113 wrote:
>>I couldn't find any good source for download Openssh on the net?
Would you please introduce a URL for download that?

http://www.vapor.com/amtelnet/

it supports only SSHv1, but I guess that's ok.
No, you really don't want to use SSHv1. Amtelnet won't do, it's an SSH
*server* the OP needs, I understand. Why not openssh.org?
The post was not intended to be meant serious. The OP has not provided
*anything* on the system he uses, what he actually needs, and so forth. So
I just searched for the most unlikely implementation.

Diez
Oct 9 '08 #4
Diez B. Roggisch wrote:
Steve Holden wrote:
>Diez B. Roggisch wrote:
>>sa6113 wrote:

I couldn't find any good source for download Openssh on the net?
Would you please introduce a URL for download that?
http://www.vapor.com/amtelnet/

it supports only SSHv1, but I guess that's ok.
No, you really don't want to use SSHv1. Amtelnet won't do, it's an SSH
*server* the OP needs, I understand. Why not openssh.org?

The post was not intended to be meant serious. The OP has not provided
*anything* on the system he uses, what he actually needs, and so forth. So
I just searched for the most unlikely implementation.
Pardon my seriousness :)

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Oct 9 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: hanjar | last post by:
Hello, I'm using paramiko 0.9 to access one of my home machines and then execute a command. But with the script included below, the command gets executed on the 2nd to 6th go, never on the...
2
by: eight02645999 | last post by:
hi i downloaded paramiko and was trying to create private/pub key pairs from the docs, i use this method to create private key import paramiko k = paramiko.RSAKey.generate(1024)...
0
by: washakie | last post by:
Hello, I'm trying to write a script which will allow me to initiate (spawn?) an SSH reverse tunnel from an internal box (inside a firewall) to an external box, while logged into the external box. ...
1
by: Terry Reedy | last post by:
"Praveena B" <praveena_python@yahoo.comwrote in message news:808793.504.qm@web44809.mail.sp1.yahoo.com... when i used paramiko in python2.5 i got the error below. File "C:\praveena\python...
1
by: sa6113 | last post by:
I use this code : import paramiko import socket hostname = "192.168.1.4" username = "test" port = 22 password = ''123456"
0
by: sa6113 | last post by:
I am using this code to connect to a windows machine using paramiko, I have installed sshd on the machine and it works properly: sock.connect((hostname, port)) t = paramiko.Transport(sock)...
0
by: sa6113 | last post by:
which program I have to install for using paramiko for sftp between a two windows machine in local network?? I have installed freeSSHd for server machine but I got an Authentication failed erro...
0
by: sa6113 | last post by:
I want to connect to a Windows machine in my network , using ssh, I use paramiko but I have problem in authentication, would you please help me? 1- I have installed freeSSHD in server machine? Is...
0
by: sa6113 | last post by:
I want to connect to a Windows machine in my network , using ssh, I use paramiko but I have problem in authentication, would you please help me? 1- I have installed freeSSHD in server machine? Is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.