Results 1 to 4 of 4

Thread: Double SSH login info after maverick upgrade

  1. #1
    Join Date
    Jan 2008
    Beans
    48

    Double SSH login info after maverick upgrade

    When I login via ssh I get both post and pre-upgrade information...?

    Code:
    Ubuntu 10.10
    
    Welcome to Ubuntu!
     * Documentation:  https://help.ubuntu.com/
    
      System information as of Fri Oct 29 20:17:42 EDT 2010
    
      System load:    0.24               Temperature:         40 C
      Usage of /home: 79.9% of 79.37GB   Processes:           205
      Memory usage:   42%                Users logged in:     1
      Swap usage:     0%                 IP address for eth0: 192.168.1.10
    
      Graph this data and manage this system at https://landscape.canonical.com/
    
    Ubuntu 10.04.1 LTS
    
    Welcome to Ubuntu!
     * Documentation:  https://help.ubuntu.com/
    
      System information as of Thu Oct 21 18:34:22 EDT 2010
    
      System load:    0.3                Temperature:         40 C
      Usage of /home: 79.9% of 79.37GB   Processes:           230
      Memory usage:   51%                Users logged in:     1
      Swap usage:     29%                IP address for eth0: 192.168.1.10
    
      Graph this data and manage this system at https://landscape.canonical.com/
    
    926 packages can be updated.
    0 updates are security updates.
    
    New release 'maverick' available.
    Run 'do-release-upgrade' to upgrade to it.
    
    *** System restart required ***

  2. #2
    Join Date
    Jan 2010
    Beans
    62

    Re: Double SSH login info after maverick upgrade

    Maybe edit the SSH message of the day?

    sudo gedit /etc/motd

  3. #3
    Join Date
    Feb 2010
    Beans
    218

    Re: Double SSH login info after maverick upgrade

    i have the same issue. i observed the following odd things:
    1. i had printmotd set to no in sshd_config but i still got the login message no matter what was in motd
    2. i changed printmotd option to yes and edited /etc/motd. result: i got the original logn message twice
    3. i rechecked /etc/motd and saw that my changes were lost, i mean it allways gets overwritten with the feault ones imediatly, or when i attempt to login.

    so, wihtout printmotd set to yes i get only one message, the default one.
    with printmotd to yes i get the default one twice, no matter what content is in motd, it get reverted.

  4. #4
    Join Date
    Feb 2010
    Beans
    218

    Re: Double SSH login info after maverick upgrade

    found the solution/reason.
    ubuntu has now an automated cron job for updating and modifying motd.

    see http://manpages.ubuntu.com/manpages/...te-motd.1.html.

    you must set printmotd to no in sshd_config, otherwise you get the motd file printed double. how you could disable motd printing at all... well i dont know. but if you follow my link you will see how to modify the content.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •