472,358 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 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 2554
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.