You are not logged in.

#1 2011-02-12 17:24:07

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

[Solved]: hotssh problem for user but not root

Recently, ssh stopped working for me as a non-root user. It reports:

ssh 192.168.0.1
  File "/usr/bin/hotssh", line 36
    print "Detected COPYING; Apparently running uninstalled, extending path"
                                                                           ^
SyntaxError: invalid syntax

Yet, logged in as  root gives the following (expected) result:

ssh 192.168.0.1
ssh: connect to host 192.168.0.1 port 22: Connection refused

I've removed the user's ~/.ssh directory and reinstalled openssh to no avail. 

Any ideas?

Last edited by Cotton (2011-02-12 18:06:14)

Offline

#2 2011-02-12 17:33:33

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [Solved]: hotssh problem for user but not root

Maybe try to reinstall hotssh? Was it upgraded recently?

Could you also please change ssh to hotssh in your topic title?


ᶘ ᵒᴥᵒᶅ

Offline

#3 2011-02-12 17:41:21

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [Solved]: hotssh problem for user but not root

You have to rebuild your hotssh package to use /usr/bin/python2 instead of /usr/bin/python.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#4 2011-02-12 18:04:09

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [Solved]: hotssh problem for user but not root

I've removed hotssh (which I didn't realise was a separate package to openssh) and ssh works as expected in an alternative virtual terminal.

Using ssh 192.168.0.1, the current console reports:
-bash: hotssh: command not found

ie it thinks /usr/bin/hotssh still exists - just remind me how to reset a console environment without having to logout.  I thought "source /etc/profile" was supposed to do the trick, but it didn't work in this case.

Thanks for the help guys.

Offline

Board footer

Powered by FluxBB