can't connect true ssh with other machines

Issues related to configuring your network
Post Reply
GioMBG
Posts: 59
Joined: 2012/02/27 00:28:14
Location: Conthey Suisse
Contact:

can't connect true ssh with other machines

Post by GioMBG » 2018/04/30 09:07:30

Hi All,
after a lot of try I come here asking for suggestions in how to understand way I can't connect from my CentOS to some machines using keys...
Specifically I gave my key.pub to the maintainers of the servers with which I have to connect and they assure that have just install the key but every time I try to connect : for example :

Code: Select all

sftp -oPort=2222 user@11.222.333.444
their server ask for passwd like any key is installed...
any suggestion ?
always thanks

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: can't connect true ssh with other machines

Post by TrevorH » 2018/04/30 10:10:21

Several possibilities but most of them require you to have access to the logs on the destination server to diagnose. Permission problems, if there are any, on the key files on the destination server will be logged by sshd when you try to connect. Get them to check that as a first step.

Second, CentOS 7's ssh has dropped support for several old and insecure encryption methods. Running your client in verbose mode might help to find out if this is the problem.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

GioMBG
Posts: 59
Joined: 2012/02/27 00:28:14
Location: Conthey Suisse
Contact:

Re: can't connect true ssh with other machines

Post by GioMBG » 2018/04/30 20:30:52

hi TrevorH,
thanks for your help.
Running your client in verbose mode
example ?
I can post some logs if can be userfull...
thanks

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: can't connect true ssh with other machines

Post by hunter86_bg » 2018/05/05 14:45:51

If your user is not set for sftp only you can use 'ssh -v' for easier debugging.

Post Reply