SSH doesn't work without a user logged in?

From: Joonas Saarinen (saarinen@nospam.mbnet.fi)
Date: 12/30/01


From: Joonas Saarinen <saarinen@nospam.mbnet.fi>
Date: Sun, 30 Dec 2001 17:26:33 GMT

My system is Linux-2.4.17.

I've put the following line in /etc/inittab :
1:2345:respawn:/usr/bin/acmelogin 38400 tty1

And the /usr/bin/acmelogin contains:
#!/bin/sh
/usr/bin/ssh -l joonas 192.168.0.1

SSH works fine when I'm logged in normally. But as you can see
I'm trying to create a system where tty1 makes a SSH connection
automatically to 192.168.0.1.

However, in that situation SSH just says:

Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).

So is there a way to make SSH work without logging in?

Of course, the other way to do it could be to somehow login
automatically locally and then put the "/usr/bin/ssh -l joonas
192.168.0.1" in the shell startup script. But does that make any
sense and how is THAT then done?

Thanks. :)