Jump to content

Debian Linux OS meeda oka question


Recommended Posts

Posted

debug1: Authentications that can continue: publickey,password

Permission denied, please try again.

  • Replies 34
  • Created
  • Last Reply

Top Posters In This Topic

  • jefferson1

    13

  • kevinUsa

    5

  • VictoryTDP

    5

  • a4apple

    3

Posted
1 minute ago, jefferson1 said:

tried for root, didn't work

how to upload private key

didn't work after changing the password

I don't know 

This is all my knowledge from seven years experience as a devops engineer in 2016

Posted

its working now , i made the below changes

 

Server's /etc/ssh/sshd_config file:

  1. To enable password authentication, uncomment

    #PasswordAuthentication yes
    
  2. To enable root login, uncomment

    #PermitRootLogin yes
    
  3. To enable SSH key login, uncomment

    #PubkeyAuthentication yes
    #AuthorizedKeysFile .ssh/authorized_keys
Posted
3 minutes ago, jefferson1 said:

its working now , i made the below changes

 

Server's /etc/ssh/sshd_config file:

  1. To enable password authentication, uncomment

    #PasswordAuthentication yes
    
  2. To enable root login, uncomment

    #PermitRootLogin yes
    
  3. To enable SSH key login, uncomment

    #PubkeyAuthentication yes
    #AuthorizedKeysFile .ssh/authorized_keys

Good 

Posted

Another question to experts

 

Another debian host lo i installed ansbile and docker, i created docker containers, they are up and running

when i run the command getting this error. how to fix it?

 

 
root@osboxes:/etc/ansible# ansible target* -m ping -i inventory.txt -vvv
ansible [core 2.14.16]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
Using /etc/ansible/ansible.cfg as config file
yaml declined parsing /etc/ansible/inventory.txt as it did not pass its verify_file() method
Parsed /etc/ansible/inventory.txt inventory source with ini plugin
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
ESTABLISH SSH CONNECTION FOR USER: root
SSH: EXEC sshpass -d10 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp
/0689044634"' 172.17.0.2 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
ESTABLISH SSH CONNECTION FOR USER: root
SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp
/499371f37a"' 172.17.0.3 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
(255, b'', b'ssh: connect to host 172.17.0.2 port 22: Connection refused\r\n')
ESTABLISH SSH CONNECTION FOR USER: root
target1 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 172.17.0.2 port 22: Connection refused",
"unreachable": true
}
(255, b'', b'ssh: connect to host 172.17.0.3 port 22: Connection refused\r\n')
target2 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 172.17.0.3 port 22: Connection refused",
"unreachable": true
}
SSH: EXEC sshpass -d14 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/root/.ansible/cp
/7fcf912a47"' 172.17.0.4 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
(255, b'', b'ssh: connect to host 172.17.0.4 port 22: Connection refused\r\n')
target3 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 172.17.0.4 port 22: Connection refused",
"unreachable": true
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...