Generate Public key for non ssh enabled servers

I am writing a script that needs to access various servers some of which are not ssh enabled. In order to access the ssh enabled servers I am using the following command to generate the public key :
ssh-keygen -t rsa

Is there a similar command for the other servers as well.
If I try to use this command on the servers that aren't ssh enabled I am getting the following error :
Couldn't connect to PRNGD socket "/var/spool/prngd/pool": Permission denied. couldn't read entropy commands file /usr/local/etc/ssh_prng_cmds: No such file or directory. ssh-rand-helper child produced insufficient data

Please advice.

First, use CODE-tags when posting code, data or logs to enhance readability and to preserve formatting like indention etc., ty.

If you want to connect to a ssh-demon you need an ssh client anyway. And without ssh installed you will neither have ssh-keygen.

So install on the other boxes ssh maybe too.