Giter VIP home page Giter VIP logo

Comments (6)

KvL159 avatar KvL159 commented on July 18, 2024

Here is the debug for the SSH connection from server A (prod) to server B :

OpenSSH_7.9p1 Debian-10+deb10u2, OpenSSL 1.1.1d 
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to domain [IP] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/id_borg_ed25519 type 3
debug1: identity file /root/.ssh/id_borg_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9p1 Debian-10+deb10u2
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1 Debian-10+deb10u2
debug1: match: OpenSSH_7.9p1 Debian-10+deb10u2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to domain:22 as 'USER'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: [email protected]
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:KEY
debug1: Host 'domain' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Will attempt key: /root/.ssh/id_borg_ed25519 ED25519 SHA256:KEY explicit
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
Debian GNU/Linux 10
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_borg_ed25519 ED25519 SHA256:KEY explicit
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password

from borg_ynh.

KvL159 avatar KvL159 commented on July 18, 2024

After testing on another server with similar config, I'm able to reach SSH and login, but I get the following error:

PTY allocation request failed on channel 0
debug1: channel 0: free: client-session, nchannels 1

from borg_ynh.

KvL159 avatar KvL159 commented on July 18, 2024

More information after checking on server /var/log/auth.log
no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman

What is the algorythm used to generated the keys ?

from borg_ynh.

JocelynDelalande avatar JocelynDelalande commented on July 18, 2024

ed25519 : per

test -f $private_key || ssh-keygen -q -t ed25519 -N "" -f $private_key

from borg_ynh.

KvL159 avatar KvL159 commented on July 18, 2024

ed25519 : per

test -f $private_key || ssh-keygen -q -t ed25519 -N "" -f $private_key

OK thanks, it seems both servers have this algorythm

from borg_ynh.

zamentur avatar zamentur commented on July 18, 2024

I don't know why

I get a password prompt, which should not happen, since I'm using RSA keys.

ARe you sure it's not the passphrase request for openning the borg repo ?

from borg_ynh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.