In UBUNTU system, I'm trying to set up remote login system. It is failing in ssh-copy-id step. It throws the following error:
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host XXX.XXX.XX.XXX port 22: Connection refused
Trying ssh XXX.XXX.XX.XXX gives-
The authenticity of host 'XXX.XXX.XX.XXX (XXX.XXX.XX.XXX)' can't be established.
ED25519 key fingerprint is SHA256:*********.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? ssh [email protected]
Please type 'yes', 'no' or the fingerprint:
What can I do? Thanks in advance. N.B. I tried the steps several times following different tutorials and while starting afresh each time, I just removed the files under /.ssh folder.
ssh 192.168.59.253
? What happens? Do you log in? Please edit your question and add this information.ssh 192.168.59.253
(these are local IPs, of your local network, and not accessible from outside the network, there is no reason to hide the IP) and ii) assuming you get the prompt you show, and writeyes
to connect, what happens if you tryssh-copy-id
AFTER connecting manually once, and disconnecting.