ssh登录欢迎



<!-- 2018-12-19 -->


1.显示文本文件的内容
/etc/issue   #登录前提示
/etc/motd   #登录后提示
ssh还可以修改/etc/ssh/sshd_config里Banner项所指示的文件


2.ssh登陆后要运行脚本的话:
把你的脚本放到该用户的~/.bashrc里最后一行即可

[root@gouplovxim ~]# vim GouplovXim
1 #!/bin/bash
2 sl
3 clear
4 echo GouplovXim1314 | xargs figlet | lolcat -a -d 10
5 fortune


/bin/bash ~/GouplovXim


3.Centos6.8重启ssh服务
systemctl restart sshd.service
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章