Re: SSH doesn't work without a user logged in?

From: Bill Unruh (unruh@physics.ubc.ca)
Date: 12/30/01


From: unruh@physics.ubc.ca (Bill Unruh)
Date: 30 Dec 2001 20:29:25 GMT

In <3C2F4E5C.A6D2D6BA@nospam.mbnet.fi> Joonas Saarinen <saarinen@nospam.mbnet.fi> writes:

]My system is Linux-2.4.17.

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

Why in the world would you put it inot inittab and with respawn. it does
nothing, and has no controlling terminal so would keep connecting,
exiting, connecting, exiting, etc. What is the purpose?
Remember stuff in /etc/inittab is run by root, not by you. So it is root
who would have to be allowed in on the far side.

]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. :)



Relevant Pages

  • Re: SSH doesnt work without a user logged in?
    ... ]> Why in the world would you put it inot inittab and with respawn. ... ]> exiting, connecting, exiting, etc. ... ]that you can use via SSH. ...
    (comp.security.ssh)
  • Re: cant connect via ssh anymore
    ... nico wrote: ... Connecting as root works, but not as a normal user. ... > ssh checks the password but when ...
    (comp.os.linux.setup)
  • Re: cant connect via ssh anymore
    ... Connecting as root works, but not as a normal user. ... >>ssh checks the password but when ... > does not accept root login from outside of the main keyboard. ...
    (comp.os.linux.setup)
  • Re: FTP and SSH access question
    ... | The FTP data port is closed, so I can't get the file with FTP. ... | disabled from connecting to SSH. ... Just "su" to root when connected over ssh ...
    (comp.os.linux.security)
  • Re: FTP and SSH access question
    ... | The FTP data port is closed, so I can't get the file with FTP. ... | disabled from connecting to SSH. ... Just "su" to root when connected over ssh ...
    (comp.os.linux.networking)