Koozali.org: home of the SME Server

Unable to use putty for access


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Unable to use putty for access
« Reply #16 on: June 18, 2009, 08:12:16 PM »
Hi.
I have had some of the same problems with Putty.
And it seems, that Putty is not able to handle OpenSSH keys to the SME server.
So instead of using Putty, we use the OpenSSH package for windows with cygwin, and that works.
Loejf.
Correct, and that is why the wiki article, which all started this, tells you to convert your OpenSSH key to be used with PuTTy: http://wiki.contribs.org/SSH_Public-Private_Keys#Converting_the_OpenSSH_Private_Key_to_work_with_PuTTY
« Last Edit: June 18, 2009, 08:14:11 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beast

  • *
  • 245
  • +0/-0
Re: Unable to use putty for access
« Reply #17 on: August 02, 2009, 02:14:48 PM »
OK - for the mean time I have been using the keyboard directly connected to the server so this thread was not acted upon until now.

Now I really need to get this up and running - I have read everything in this thread carefully again (somebody will properly tell me in the next couple of post that it was not good enough).

I need to get back to default behavior (SSH/Certificate etc.)

I have tried

Code: [Select]
rm /home/e-smith/ssl.crt/servername.domain.com.crt
rm /home/e-smith/ssl.key/servername.domain.com.key
rm /home/e-smith/ssl.pem/servername.domain.com.pem
signal-event post-upgrade
signal-event reboot

With no luck! I have tried to connect from an Ubuntu box

Code: [Select]
benny@benny-desktop:~$ ssh admin@192.168.1.11 -v
OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.11 [192.168.1.11] port 22.
debug1: Connection established.
debug1: identity file /home/benny/.ssh/identity type -1
debug1: identity file /home/benny/.ssh/id_rsa type -1
debug1: identity file /home/benny/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host

But it do seam as if the server just reject all identity types!

Any help is really appreciated  :smile:

Thank you!

Offline beast

  • *
  • 245
  • +0/-0
Re: Unable to use putty for access
« Reply #18 on: August 02, 2009, 02:46:20 PM »
It must be related to the daily cron job that seam to make an error - E.g.

Code: [Select]
/etc/cron.daily/conf-mod_ssl:

You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:State or Province Name (full name) [Berkshire]:Locality Name (eg, city) [Newbury]:Organization Name (eg, company) [My Company Ltd]:Organizational Unit Name (eg, section) []:Common Name (eg, your name or your server's hostname) []:Email Address []:

What this script does is to exec expand-template /home/e-smith/ssl.pem/pem

when I try to execute "sh conf-mod_ssl" it shows the same text and return me right to the prompt. When I write "expand-template /home/e-smith/ssl.pem/pem" directly at the command line is terminate the current session or start another - I am back to the login screen again!

This may help in debugging the situation!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Unable to use putty for access
« Reply #19 on: August 02, 2009, 08:47:19 PM »
I have tried

Code: [Select]
rm /home/e-smith/ssl.crt/servername.domain.com.crt
rm /home/e-smith/ssl.key/servername.domain.com.key
rm /home/e-smith/ssl.pem/servername.domain.com.pem
signal-event post-upgrade
signal-event reboot

With no luck!

Those certificates have absolutely nothing to do with SSH. Those are SSL certiificates, used for https, imaps and smtps access.

It is unsurprising that your actions here haven't helped with ssh access.

Offline beast

  • *
  • 245
  • +0/-0
Re: Unable to use putty for access
« Reply #20 on: August 02, 2009, 08:58:54 PM »
Those certificates have absolutely nothing to do with SSH. Those are SSL certiificates, used for https, imaps and smtps access.

It is unsurprising that your actions here haven't helped with ssh access.

Yes I know - but I am beginning to try almost anything  :smile:

Offline beast

  • *
  • 245
  • +0/-0
Re: Unable to use putty for access
« Reply #21 on: August 02, 2009, 09:05:29 PM »
When I try to make a SSH connection from another computer I get this in the log:

Aug  2 21:02:04 beastserver sshd: refused connect from benny.beast.dk (192.168.1.200)

but there is nothing in /var/log/sshd/current ???

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Unable to use putty for access
« Reply #22 on: August 02, 2009, 09:47:39 PM »
is your SME's lan address 192.168.1.X?

Stefano

Offline beast

  • *
  • 245
  • +0/-0
Re: Unable to use putty for access
« Reply #23 on: August 02, 2009, 10:41:34 PM »
is your SME's lan address 192.168.1.X?

Yes the server is 192.168.1.11 and the client is 192.168.1.200

Offline beast

  • *
  • 245
  • +0/-0
Re: Unable to use putty for access
« Reply #24 on: September 14, 2009, 07:39:55 AM »
This is really strange!

Some times I am able to access the server with putty and sometimes not (many days between the shifts).

This really makes me wonder what is the cause of this ?????

I can not see that I do anything that may trigger the shift!

It is just a private server with no big activity but I also have company servers that have SME server installed and because of this I like to find out about this!

In hope for a solution?

Offline beast

  • *
  • 245
  • +0/-0
Re: Unable to use putty for access
« Reply #25 on: November 28, 2009, 04:19:39 PM »
Think I have found out why I get this random access with Putty !!

It is because the contrib "SSH denyhosts" is blocking my computer that are on the internal network?????

How is this possible? Has it something to do with the SSH Public-Private Keys that I did not finish?

Regards
Benny


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Unable to use putty for access
« Reply #26 on: November 29, 2009, 12:54:51 AM »
beast

> It is because the contrib "SSH denyhosts" is blocking my computer that are on the internal network?????

According to the Wiki article:
Denyhosts bans hosts which failed too many login attempts to your ssh deamon.
It contains also a panel in the server manager to see who is blocked, add some allowed hosts not to block and enable or disable the service.

I suggest you totally remove that contrib (and any configuration).
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Unable to use putty for access
« Reply #27 on: November 29, 2009, 01:02:07 AM »
I suggest you totally remove that contrib (and any configuration).

or, at least, to read the wiki and the infos in the panel :-)

Offline beast

  • *
  • 245
  • +0/-0
Re: Unable to use putty for access
« Reply #28 on: November 29, 2009, 07:03:49 AM »
The funny thing is that I have not have made error attemps to log in. Eg. do not supply the wrong password and still I end up on the blocked list - this make me wonder ??? Hacker or.....

I have other servers where this problem do not occur!

Now I have stated that my IP shall never be blocked.

Would be nice if the contrib made a more descriptive message in the log

Regards
Benny

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Unable to use putty for access
« Reply #29 on: November 29, 2009, 09:32:50 AM »
Quote
Would be nice if the contrib made a more descriptive message in the log

if this contrib is in smecontribs repo then open a nfr in bugzilla, otherwise send a mail to the rpm's mantainer