[SOLVED] ssh problem connecting to my home-server

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

[SOLVED] ssh problem connecting to my home-server

Postby zimzon on Tue May 01, 2012 1:48 pm

Hello,

ive recently installed ubuntu server 12.04, and trying to run openssh-server

i worked fine with 10.04 but now i get permission denied.
im 100% sure about right username och password. what could be the problem??

this is the output of ssh -v host

Code: Select all
simon@simon-Aspire-5738 ~ $ ssh -v [user]@192.168.1.65
OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.65 [192.168.1.65] port 22.
debug1: Connection established.
debug1: identity file /home/simon/.ssh/id_rsa type -1
debug1: identity file /home/simon/.ssh/id_rsa-cert type -1
debug1: identity file /home/simon/.ssh/id_dsa type -1
debug1: identity file /home/simon/.ssh/id_dsa-cert type -1
debug1: identity file /home/simon/.ssh/id_ecdsa type -1
debug1: identity file /home/simon/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.8p1 Debian-7ubuntu1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 27:e8:5a:b5:46:30:47:e9:2b:f6:4b:34:a1:36:41:31
debug1: Host '192.168.1.65' is known and matches the ECDSA host key.
debug1: Found key in /home/simon/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by [user]
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/simon/.ssh/id_rsa
debug1: Trying private key: /home/simon/.ssh/id_dsa
debug1: Trying private key: /home/simon/.ssh/id_ecdsa
debug1: Next authentication method: password
[user]@192.168.1.65's password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
[user]@192.168.1.65's password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
[user]@192.168.1.65's password:


help appreciated im totally stuck!
Last edited by zimzon on Wed May 02, 2012 1:43 pm, edited 1 time in total.
zimzon
Level 1
Level 1
 
Posts: 4
Joined: Tue May 01, 2012 1:40 pm

Linux Mint is funded by ads and donations.
 

Re: ssh problem connecting to my home-server

Postby DrHu on Tue May 01, 2012 2:51 pm

Can you logon with root? if you have a root account
--if so then a persmissions problem with user account..
    Create a new user and see if the new user also gets the erro in connecting to the openssh server ?
--you might want to regenerate the ssh keys on the client side..


OK, always check your configurations (and make no assumptions) whenever an error strikes, especially if it had been working previously
    Don't assume that noting in the application has changed: you must check to be sure!
https://www.linuxquestions.org/linux/an ... n_with_ssh
    A small bit about the jargon
    {1} ssh stands for Secure SHell on a basic level it is like telnet but has many other differences the main one being encryption.
    {2} Client the client is the machine that initiates the connection.
    {3} Server the server is the machine that listens for incoming connections.
    {4} Private keys are stored on the client.
    {5} Public keys are stored on the server.

    {6} Less secure if the client is compromised so is access to the server
User avatar
DrHu
Level 15
Level 15
 
Posts: 5969
Joined: Wed Jun 17, 2009 8:20 pm

Re: ssh problem connecting to my home-server

Postby zimzon on Tue May 01, 2012 3:26 pm

i can log in with a non-root user but not as my admin-account.
i have changed permitrootlogin to yes but still no difference.

the problem with a normal account is that i often use sudo... and with a normal account i believe i cant do that... am i right?

shall i set privilegeseparation to no???
zimzon
Level 1
Level 1
 
Posts: 4
Joined: Tue May 01, 2012 1:40 pm

Re: ssh problem connecting to my home-server

Postby zimzon on Wed May 02, 2012 1:41 pm

i reinstalled my ubuntu 12.04 server OS and now its working!

thanks anyway. its always good to have ppl to ask!

/ zimon
zimzon
Level 1
Level 1
 
Posts: 4
Joined: Tue May 01, 2012 1:40 pm


Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 3 guests