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

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


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



Relevant Pages

  • Re: SSH doesnt work without a user logged in?
    ... exiting, connecting, exiting, etc. ... Remember stuff in /etc/inittab is run by root, ... ]SSH works fine when I'm logged in normally. ...
    (comp.security.ssh)
  • 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. ...
    (comp.security.ssh)
  • Re: SSH
    ... I'm connecting from different network eth0 is ... Subject: SSH ... your logged in username is the same as the SSH valid username then you ... Your FC5 SSH server has users john, mary, steve, and paul. ...
    (Fedora)
  • Re[2]: anonymous ssh forwarding
    ... >> ssh server so that ssh server 'thinks' that I'm connecting from home? ... > So my approach is to find out how can I set something up on my home freebsd machine so that connecting to some port on it, it connects to www server ssh port. ... You could build up a VPN between your home and your ...
    (freebsd-questions)
  • Re: OpenSSH MacOSX bug? (invalid name was supplied)
    ... I've had some luck downgrading to ssh version 1 (i.e. use ... connecting to either debian or Ubuntu OpenSSH server... ... Server Version: ... hosts, but any hosts on my local LAN ...
    (SSH)