Re: Removing motd from ssh logins

2007-03-18 Thread Kamaraju S Kusumanchi
Marco De Vitis wrote: >> What ssh version are you using? Which distribution are you using? > > Well... I mentioned an Etch machine in a Debian mailing list... can you > guess? ;)) Sorry! I thought the client is running Debian Etch. I wanted to find out what the server is running. I went back and

Re: Removing motd from ssh logins

2007-03-18 Thread Marco De Vitis
On 18/03/2007 20:20, Kamaraju S Kusumanchi wrote: My guess is that the motd is getting printed from some other thing (ex:- login). One way to check for this is to PrintMotd yes in sshd_config and see if motd appears one extra time. If it does, the Yep it did indeed. The problem was in /etc/p

Re: Removing motd from ssh logins

2007-03-18 Thread Marco De Vitis
On 18/03/2007 19:40, Wei Chen wrote: Have you tried restarting/reloading the daemon? You mean after setting PrintMotd to "no" in /etc/ssh/sshd_config? Sure. The setting is actually there since quite some time, with many reboots in the meantime. -- Ciao, Marco. -- To UNSUBSCRIBE, email

Re: Removing motd from ssh logins

2007-03-18 Thread Marco De Vitis
On 18/03/2007 19:10, Tobias Nissen wrote: If you use pam (grep UsePAM /etc/ssh/sshd_config) then you might want to disable printing of the motd in /etc/pam.d/ssh. Look for a line like sessionoptional pam_motd.so and comment it out. Oh yes, that was it, thanks! I already did it on

Re: Removing motd from ssh logins

2007-03-18 Thread Kamaraju S Kusumanchi
Marco De Vitis wrote: > Hi, > I'd like to prevent the motd from appearing when someone logs in via ssh > on an Etch machine. > I already have "PrintMotd no" in /etc/ssh/sshd_config, but the motd > still appears. > > Any clues? > My guess is that the motd is getting printed from some other thing

Re: Removing motd from ssh logins

2007-03-18 Thread Wei Chen
On 3/19/07, Marco De Vitis <[EMAIL PROTECTED]> wrote: On 18/03/2007 14:20, Tobias Nissen wrote: > Place the file .hushlogin into the homedir of the remote user. Uhm, thanks, it works, but I'd prefer doing it "the right way"... Infact, this file is used to suppress motd (and last login) output

Re: Removing motd from ssh logins

2007-03-18 Thread Tobias Nissen
Marco De Vitis wrote: >> Place the file .hushlogin into the homedir of the remote user. > > Uhm, thanks, it works, but I'd prefer doing it "the right way"... If you use pam (grep UsePAM /etc/ssh/sshd_config) then you might want to disable printing of the motd in /etc/pam.d/ssh. Look for a line li

Re: Removing motd from ssh logins

2007-03-18 Thread Marco De Vitis
On 18/03/2007 14:20, Tobias Nissen wrote: Place the file .hushlogin into the homedir of the remote user. Uhm, thanks, it works, but I'd prefer doing it "the right way"... Infact, this file is used to suppress motd (and last login) output when motd is enabled in sshd_config, but in my case it

Re: Removing motd from ssh logins

2007-03-18 Thread Tobias Nissen
Marco De Vitis wrote: > I'd like to prevent the motd from appearing when someone logs in via > ssh on an Etch machine. > I already have "PrintMotd no" in /etc/ssh/sshd_config, but the motd > still appears. Place the file .hushlogin into the homedir of the remote user. See the section FILES in "m

Removing motd from ssh logins

2007-03-18 Thread Marco De Vitis
Hi, I'd like to prevent the motd from appearing when someone logs in via ssh on an Etch machine. I already have "PrintMotd no" in /etc/ssh/sshd_config, but the motd still appears. Any clues? -- Ciao, Marco. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Tr