Re: Logon script with SSH - Solaris 8

From: ns (ns_at_none.ns)
Date: 05/24/05


Date: Tue, 24 May 2005 17:38:59 +0200

Ok Neil. It's true, the file /etc/.login is loaded at login... i tested with
command echo...

so, my problem is, the command :
stty erase '^H'

This command is saved in file /etc/.login and /etc/profile
This command is not executed when user connect by using ssh but the same
commande is executed by using telnet.

I use this command to configure the keybord touch to use "Return" to delete
caracter.

How can i do it ?

ThankYou very much
NS

"Neil W Rickert" <rickert+nn@cs.niu.edu> a écrit dans le message de
news:d6ve36$ol4$1@usenet.cso.niu.edu...
> "ns" <ns@none.ns> writes:
>
> >Am asking about "ssh <hostname>"
>
> >Login shell is ignored !
>
> I don't know what you are doing wrong here.
>
> ".login" is run by csh for me when I login. I'm using solaris 8, and
> openssn-4.0p1.
>
> I just retested to be sure. I tested by adding an "echo" line to
> "/etc/.login", and then doing an ssh login. The output from that
> "echo" line showed up on the screen.
>
> As others have said, ssh is not really the issue. It is the shell
> that runs the commands in "/etc/.login" or "/etc/profile".
>



Relevant Pages

  • Re: Really need help on this one
    ... Is there a way to read the output of a particular command into ... Heres a better example using ssh. ... set timeout $timeout ... exec kill -9 $pid ...
    (comp.lang.tcl)
  • RE: midnight commander and ssh sftp
    ... midnight commander and ssh sftp ... which is displayed at the bottom of the MC panel. ... "Left file command options right" at the top of the MC ... MC SSH session with the remote host by hitting F10 key. ...
    (freebsd-questions)
  • Re: [Info-ingres] problems with ssh
    ... Check the SSHD log on the server for errors. ... ancient version of SSH, unfortunately. ... the command seems to have functioned - but just wont terminate and leaves a process hanging around. ... Duckman: You got anymore of those glues? ...
    (comp.databases.ingres)
  • Scripts using SSH and SSH_ASKPASS
    ... To test SSH scripts you better destroy the control TTY. ... The trick is to run YOUR script on YOUR local ... As for the password relaying command: this needs not be an X command. ... # we read one line from a temporary pipe. ...
    (comp.security.ssh)
  • Re: embedding sshd into a server
    ... Right now it listens on a ... Copy the normal ssh config files to a new "privatessh" config: ... A simple way to force a certain command is to change ...
    (comp.security.ssh)