LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-30-2018, 07:22 AM   #1
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Rep: Reputation: Disabled
SSH permission denied - VMs


Hi guys,
I have two Ubuntu virtual machines (a client and a server) connected to the same network, labeled as LAB1, using a Network NAT configuration. Well, after installing openssh on both virtual machines, I have tried to ssh from the client to server typing
Code:
ssh user1@server.com
but I get always the following message(even if the password is right!):
Quote:
Permission denied, please try again
and after 3 times I get:
Quote:
Permission denied (publickey, password)
Why? How can I solve?
Thanks.
 
Old 04-30-2018, 08:03 AM   #2
JSkywalker
Member
 
Registered: Aug 2007
Distribution: openSUSE
Posts: 102

Rep: Reputation: 24
Try to add '-v' to give some more verbose messages. this should give a hint on what is wrong:
Quote:
ssh -v user1@server.com
 
Old 04-30-2018, 08:12 AM   #3
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JSkywalker View Post
Try to add '-v' to give some more verbose messages. this should give a hint on what is wrong:
Here the link to pastebin: https://pastebin.com/mNUQNW6Z
 
Old 05-02-2018, 03:07 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What is in /home/micheleclient/.ssh/ ??
And the debug suggests port 2222
so what is in /home/micheleclient/.ssh/config

Sanitize if you share.
 
Old 05-02-2018, 03:24 PM   #5
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
What is in /home/micheleclient/.ssh/ ??
And the debug suggests port 2222
so what is in /home/micheleclient/.ssh/config

Sanitize if you share.
Dear,
I was able to solve my problem just installing two new virtual machine, one with openssh-client package and the other with the openssh-server package. I was wrong because when I typed: ssh user1@server_machine, the user1 wasn't on the server side! I was using ssh in the wrong way.That's all.
Thanks to all.
 
Old 05-02-2018, 05:36 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Re-installing an entire OS does not "solve" IMO, but it your boxen!
 
  


Reply

Tags
connection, ssh, virtual box



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH permission denied bmorency Linux - Server 5 09-18-2015 07:02 AM
permission denied when ssh cjashu Linux - Server 1 05-01-2014 09:15 AM
SSH: Permission denied, please try again. sanatox Linux - Security 3 01-15-2007 09:47 PM
ssh -Permission denied zaphod_es Linux - Networking 4 05-21-2006 01:56 PM
SSH Permission Denied Chimney Linux - Security 1 11-10-2005 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration