ubuntu 启用或禁用用户ssh登录的信息

一般ssh登录会产生以下信息:

Linux sparc 2.6.15-51-sparc64 #1 Tue Oct 23 21:46:00 UTC 2007 sparc64 GNU/Linux
The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Dec  9 12:50:43 2007 from 192.168.0.6

要是不想有这些信息只要在登录用户主目录下:

touch .hushlogin

要想修改这些信息,有两处可以改,

1.$cat /etc/issue
Ubuntu 10.04.2 LTS \n \l
issue 内各代码意义:
\d 本地端时间日期;
\l 显示第几个终端机接口;
\m 显示硬件等级 (i386/i486/i586/i686...);
\n 显示主机网络名称;
\o 显示 domain name;
\r 操作系统版本 (相当于 uname -r)
\t 显示本地端时间;
\s 操作系统名称;
\v 操作系统版本。
2.$cat /etc/motd
/etc/update-motd.d/不过这些信息是update-motd控制的,在/etc/update-motd.d/中修改脚本
修改后用:sudo run-parts /etc/update-motd.d  去执行就会立即见到效果