Re: SSH doesn't work without a user logged in?
From: Bill Unruh (unruh@physics.ubc.ca)Date: 12/30/01
- Next message: Joonas Saarinen: "Re: SSH doesn't work without a user logged in?"
- Previous message: Joonas Saarinen: "SSH doesn't work without a user logged in?"
- In reply to: Joonas Saarinen: "SSH doesn't work without a user logged in?"
- Next in thread: Joonas Saarinen: "Re: SSH doesn't work without a user logged in?"
- Reply: Joonas Saarinen: "Re: SSH doesn't work without a user logged in?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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. :)
- Next message: Joonas Saarinen: "Re: SSH doesn't work without a user logged in?"
- Previous message: Joonas Saarinen: "SSH doesn't work without a user logged in?"
- In reply to: Joonas Saarinen: "SSH doesn't work without a user logged in?"
- Next in thread: Joonas Saarinen: "Re: SSH doesn't work without a user logged in?"
- Reply: Joonas Saarinen: "Re: SSH doesn't work without a user logged in?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|