@zaspa wrote:
Hello I wish to ssh without a password with
rsync /home/pi/cc/*.png hassio@xxx.168.1.242:/home/pi/cc/
without a password
I can rsync but only with a password request
I have 2 x PI4
One is running HassOS 3.12 installed from an image file from the home assistant download page
The other pi is running raspbian-buster
I am unable to transfer files after creating an ssh key from the buster PI to the Hassio PI unless i give the password
On the buster Pi I am typing the following
pi@raspberrypi:~ $ sudo -i
root@raspberrypi:~# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:4wZBlOyLYqRHcu7Uw4LXPoiu4QEvtbDSi3v1Y root@raspberrypi
The key’s randomart image is:root@raspberrypi:~# ssh-copy-id -i ~/.ssh/id_rsa.pub hassio@xxx.168.1.242
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/root/.ssh/id_rsa.pub”
/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: INFO: 1 key(s) remain to be installed – if you are prompted now it is to install the new keys
hassio@xxx.168.1.242’s password:
Number of key(s) added: 1
Now try logging into the machine, with: “ssh ‘hassio@xxx.168.1.242’”
and check to make sure that only the key(s) you wanted were added.
root@raspberrypi:~# logout
pi@raspberrypi:~ $ rsync /home/pi/cc/*.png pi@192.168.1.242:/home/pi/cc/
pi@xxx.168.1.242’s password:i cant login with out entering the password
what am i doing wrong?
thanks for any ideas
Posts: 1
Participants: 1