az ssh kulcsoknal akadtam el - 2 esetet probaltam -
a) kulcsok generalasa mint root ==> OK
a) kulcsok generalasa mint nagios user ==> NOK
a) nagios-szerver:
mint root cd /root/.ssh
ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/nagios
.
.
.
nagios
nagios.pub
vim /root/.ssh/config
Host aa.aa.aa.aa
IdentityFile /root/.ssh/nagios
Megjegyzes: aa.aa.aa.aa nagios-kliens-gep_ip
ssh-copy-id -i /root/.ssh/nagios nagios@aa.aa.aa.aa
ssh 'nagios@aa.aa.aa.aa' ...mukodik password nelkul
mehet a check_by_ssh Plugin proba
b)
nagios /usr/local/nagios/.ssh
$ ssh-copy-id -i /usr/local/nagios/.ssh/nagios nagios@aa.aa.aa.aa
/usr/bin/ssh-copy-id: 59: cd: can't cd to /home/nagios
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/usr/local/nagios/.ssh/nagios.pub"
The authenticity of host 'aa.aa.aa.aa (aa.aa.aa.aa)' can't be established.
ECDSA key fingerprint is SHA256:Uxxxxxxxxxxxxxxxxxxxxxxxxxx0.
Are you sure you want to continue connecting (yes/no)? yes
mktemp: failed to create file via template ‘/home/nagios/.ssh/ssh-copy-id_id.XXXXXXXXXX’: No such file or directory
/usr/bin/ssh-copy-id: ERROR: mktemp failed
$ exit