Hello World !
分类: LINUX
2012-08-14 13:59:22
/etc/issue 登录前显示
/etc/motd 登录后显示
login as: root
root@192.168.2.196's password:
Last login: Tue Aug 14 20:18:55 2012 from 192.168.2.178
[root@lyn ~]# more /etc/issue
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
[root@lyn ~]# more /etc/motd
[root@lyn ~]# echo "Welcome~~" >> /etc/motd
[root@lyn ~]#
login as: root
root@192.168.2.196's password:
Last login: Tue Aug 14 20:21:01 2012 from 192.168.2.178
Welcome~~
[root@lyn ~]# echo "Banner /etc/issue" >> /etc/ssh/sshd_config
[root@lyn ~]# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
[root@lyn ~]#
login as: root
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
root@192.168.2.196's password:
Last login: Tue Aug 14 20:22:24 2012 from 192.168.2.178
Welcome~~
[root@lyn ~]#