Re: SSH doesn't work without a user logged in?
From: Bill Unruh (unruh@physics.ubc.ca)Date: 12/31/01
- Next message: Bill Unruh: "Re: F-Secure client with OpenSSH server"
- Previous message: Different Views!: "Pedophilia... Why all the fuss?"
- In reply to: Joonas Saarinen: "Re: SSH doesn't work without a user logged in?"
- Next in thread: Richard E. Silverman: "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: 31 Dec 2001 06:42:18 GMT
In <3C2F9941.2E7E09AB@nospam.mbnet.fi> Joonas Saarinen <saarinen@nospam.mbnet.fi> writes:
]Bill Unruh wrote:
]> 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?
]I am just trying to make a plain "terminal" computer which you
]can't use locally but which connects automatically to another computer
]that you can use via SSH. If you disconnect, you will just get a new
]connection to destination (until you shut down the computer). Is
]there a more elegant way to do this?
]> 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.
]I changed it a bit (hopefully to better direction):
]/usr/bin/acmelogin
]#!/bin/sh
]su - foobar
]/home/foobar/.profile :
]while [ 1 == 1 ];
]do
] ssh -l joonas 192.168.0.1
]done
]It works fine when I run .profile manually from prompt, but via
]/usr/bin/acmelogin it doesn't.
This will not do that anyway ( alt-ctrl-F2 would give anyone a console.)
Probably a better idea is to put the ssh call into the .login or
.bash_profile or .bashrc file for each user so it gets run immediately
- Next message: Bill Unruh: "Re: F-Secure client with OpenSSH server"
- Previous message: Different Views!: "Pedophilia... Why all the fuss?"
- In reply to: Joonas Saarinen: "Re: SSH doesn't work without a user logged in?"
- Next in thread: Richard E. Silverman: "Re: SSH doesn't work without a user logged in?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|