Am 23.02.2017 um 21:20 schrieb Jochen Dehm:
Yes, that's right. The fingerprint is the problem.

But with the user nobody is not so simple to implement.

root@sv-openvas /tmp # su - nobody -s /bin/bash
No directory,  Registration withHOME=/

nobody@sv-openvas:/tmp$ scp -o HashKnownHosts=no test.csv
root@192.168.1.119:/root/csv-reports
Could not create directory '/nonexistent/.ssh'.
The authenticity of host '192.168.1.119 (192.168.1.119)' can't be
established.
ECDSA key fingerprint is 21:8d:fc:b5:42:40:aa:b7:e6:40:f5:f3:2c:b3:be:00.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts
(/nonexistent/.ssh/known_hosts).

The user has no home director

root@sv-openvas /tmp # cat /etc/passwd | grep nobody
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin

then give him one - so what
or use a different user (likely better)
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to