jefferson1 Posted January 10 Author Report Posted January 10 debug1: Authentications that can continue: publickey,password Permission denied, please try again. Quote
kevinUsa Posted January 10 Report Posted January 10 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 Quote
jefferson1 Posted January 10 Author Report Posted January 10 its working now , i made the below changes Server's /etc/ssh/sshd_config file: To enable password authentication, uncomment #PasswordAuthentication yes To enable root login, uncomment #PermitRootLogin yes To enable SSH key login, uncomment #PubkeyAuthentication yes #AuthorizedKeysFile .ssh/authorized_keys Quote
VictoryTDP Posted January 10 Report Posted January 10 3 minutes ago, jefferson1 said: its working now , i made the below changes Server's /etc/ssh/sshd_config file: To enable password authentication, uncomment #PasswordAuthentication yes To enable root login, uncomment #PermitRootLogin yes To enable SSH key login, uncomment #PubkeyAuthentication yes #AuthorizedKeysFile .ssh/authorized_keys Good Quote
jefferson1 Posted January 12 Author Report Posted January 12 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 } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.