Thread: SSH automation
View Single Post
Old 25 October 2021, 11:40   #6
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,511
Ok. Let's assume your openSSH for AmigaOS is more or less complete (I didn't try it).

Use
ssh-keygen
to generate a private/public key pair. RSA with 2048 bits will be sufficient as you are using it in your LAN only. It also makes sure that it works with protocol version 1 (not sure if the Amiga client supports version 2).
Code:
ssh-keygen -f id_yourname -t rsa
This creates
id_yourname
(private key) and
id_yourname.pub
(public key) in your current directory.
Copy the contents of the public key to .ssh/authorized_keys on your pi. Also to authorized_keys2 (or use a link). Then you should be able to log in with your private key, without having to type a password:
Code:
ssh -i id_yourname pi-address
If it works, you may copy the private key to
HOME:.ssh
and make it select the id automatically via your config file. Add to
HOME:.ssh/config
:
Code:
Host pi
        Hostname 1.2.3.4
        IdentityFile HOME:.ssh/id_yourname
After that a simple
ssh pi
should log you in.
Note: Make sure that sshd on your pi still accepts protocol version 1 connections. Under BSD you would check that in
/etc/ssh/ssh_config
- not sure about Linux.
phx is offline  
 
Page generated in 0.04521 seconds with 11 queries