question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSH connection fails - Kali - Python3.8

See original GitHub issue

Hello I just installed the tool using pip and when I run the command

pwncat -s -u SSH_USER -p SSH_PORT -H SSH_HOST -P SSH_PASSWORD

I get the following error.

Traceback (most recent call last):
  File "/home/kali/.local/bin/pwncat", line 8, in <module>                                                                                                                                                                                 
    sys.exit(main())                                                                                                                                                                                                                       
  File "/home/kali/.local/lib/python3.8/site-packages/pwncat/__main__.py", line 28, in main                                                                                                                                                
    pwncat.victim.command_parser.dispatch_line(                                                                                                                                                                                            
  File "/home/kali/.local/lib/python3.8/site-packages/pwncat/commands/__init__.py", line 290, in dispatch_line                                                                                                                             
    command.run(args)                                                                                                                                                                                                                      
  File "/home/kali/.local/lib/python3.8/site-packages/pwncat/commands/connect.py", line 229, in run
    pwncat.victim.connect(chan)
  File "/home/kali/.local/lib/python3.8/site-packages/pwncat/remote/victim.py", line 279, in connect
    hostname_path = self.run("which hostname").strip().decode("utf-8")
  File "/home/kali/.local/lib/python3.8/site-packages/pwncat/remote/victim.py", line 1032, in run
    sdelim, edelim = self.process(cmd, delim=wait, timeout=timeout)
  File "/home/kali/.local/lib/python3.8/site-packages/pwncat/remote/victim.py", line 1086, in process
    data = self.client.recv(len(command), socket.MSG_PEEK)

Local Info

Operative System: Kali Linux 2020.2 Python version: Python 3.8.3 User: non-root

Remote Info

Operative System: Ubuntu 14.04.5 LTS User: non-root

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
r4vanancommented, Sep 14, 2020

Now its working fine

On Mon, 14 Sep 2020, 04:48 pitust, notifications@github.com wrote:

I had this issue. You need to uninstall and then reinstall paramiko from the fork.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/calebstewart/pwncat/issues/27#issuecomment-691739960, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRKLDZ5PHYJ74QV7TVR3ULSFVHNZANCNFSM4O3EEDVA .

0reactions
calebstewartcommented, Sep 14, 2020

Great, I’m going to close this issue, then. If you see it pop up again for whatever reason, please open another issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix/Solve SSH Login Issue/Problem On Kali Linux ...
This article describes How To Fix/Solve SSH Login Issue / Problem On Kali Linux 2017.02 EditionKali Linux is a Debian-based Linux distribution ...
Read more >
Everything you need to know about the switch to Python 3
Kali Linux fully switched to Python 3. This means that any tool packaged by Kali that was using Python 2 has been either...
Read more >
How to Troubleshoot SSH Connection Issues - GeeksforGeeks
Troubleshooting steps: Navigate to /etc/ssh/sshd_config. Make sure PasswordAuthentication and PubkeyAuthentication ends with yes.
Read more >
How to Fix SSH Failed Permission Denied (publickey,gssapi ...
The SSH Permission Denied (publickey,gssapi-keyex,gssapi-with-mic) appears on SSH login. This tutorial features the steps to fix the error.
Read more >
SSH Connection Refused (Causes & Solutions) - Like Geeks
In this tutorial, you will know causes for the SSH Connection Refused problem and soutions for all of them, step by step.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found