Re: Can we use self SSH server ?



In article <1192301387.389497.167920@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
kid1972tw@xxxxxxxxxxxx writes:

If I change root login shell , how can I change it back ?

Boot single-user. But the "custom CLI" users of your embedded system
probably shouldn't log in as "root" anyway (you can of course have other
users with uid 0 if you need to).

And if my own CLI would like to use other shell's commands , can 2
shell co-work , should I handle their system call to kernel myself ?

Well, if you don't know how "your own CLI" should work, I guess you have
some work ahead of you. This is not the place to discuss that though, it
has nothing to do with SSH, nor can SSH magically fix things for you
even if you modify the source. You could possibly use the "subsystem"
feature of SSH to start some other program than the user's login shell,
but I don't think it would go down well the user's of your device to
have to do something other than a "plain login".

--Per Hedeland
per@xxxxxxxxxxxx



.



Relevant Pages

  • SUMMARY: how to set correct path?
    ... ven if we login with ssh. ... For BASH login shell, place the system wide ENV variables, such as PATH, ... You can set Use_login in the sshd_config to yes and restart sshd. ...
    (SunManagers)
  • Re: Detailed logging of ssh sessions
    ... >via ssh). ... come in some way from the login shell. ... I'd just experiment with using script in some way ...
    (freebsd-questions)
  • ERRATA : interactive and login shells: bug or design decision ?
    ... when I execute: <ssh user@somesite.com command>, ... but I am expecting my command to run under a login shell. ...
    (SSH)
  • Re: ftp access
    ... Otherwise they can just use ssh to spawn a shell for themselves: ... box is set up with the ftp login shell set to "/nonexistent/ftponly", ... I suspect sshd is trying to use the login shell to execute the supplied ... with "unsubscribe freebsd-security" in the body of the message ...
    (FreeBSD-Security)
  • RE: sftp virtual users question
    ... I create the uid with "no login shell". ... They can scp, but they can't ... 2.Is it possible to manage users independently for ssh and sftp ... 3.Documentation about sftp-server subsystem is very poor? ...
    (SSH)