RSS   



  可打印版本 | 推薦給朋友 | 訂閱主題 | 收藏主題 | 純文字版  


 


 
主題: [問題]關於一登入ssh就會自動寄信   字型大小:||| 
kone
鐵驢友〔初級〕
等級: 4


今日心情

 . 積分: 44
 . 文章: 221
 . 收花: 288 支
 . 送花: 1424 支
 . 比例: 4.94
 . 在線: 841 小時
 . 瀏覽: 8320 頁
 . 註冊: 7154
 . 失蹤: 15
 . TAIWAN
#1 : 2009-12-5 12:09 PM     只看本作者 引言回覆

最近發伺服器發現~~只要透過ssh登入,root就會發一封信內容為主機ip跟帳戶名稱及密碼給一位badbou@gmail.com的信箱,應該是是被入侵,但透過本端登入是不會發信 ,但透過ssh就會,想請教各位前輩~有沒有在那個設定裡面有關於一登入ssh就會自動執行什麼動作的設定,因為查了排程、跟at好像都無可疑的script…,我還有那些方便可以查呢…如果可以,請各位前輩,給小弟我些意件吧…感恩不盡


[如果你喜歡本文章,就按本文章之鮮花~送花給作者吧,你的支持就是別人的動力來源]
本文連接  
檢閱個人資料  發私人訊息  Blog  快速回覆 新增/修改 爬文標記
azactam
銅驢友〔初級〕
等級: 8等級: 8


今日心情

 . 積分: 128
 . 文章: 230
 . 收花: 630 支
 . 送花: 7604 支
 . 比例: 12.07
 . 在線: 2779 小時
 . 瀏覽: 49137 頁
 . 註冊: 7029
 . 失蹤: 1
#2 : 2009-12-5 01:54 PM     只看本作者 引言回覆

When a user successfully logs in, sshd does the following:

           1.   If the login is on a tty, and no command has been specified,
                prints last login time and /etc/motd (unless prevented in the
                configuration file or by ~/.hushlogin; see the FILES section).

           2.   If the login is on a tty, records login time.

           3.   Checks /etc/nologin; if it exists, prints contents and quits
                (unless root).

           4.   Changes to run with normal user privileges.

           5.   Sets up basic environment.

           6.   Reads the file ~/.ssh/environment, if it exists, and users are
                allowed to change their environment.  See the
                PermitUserEnvironment option in sshd_config(5).

           7.   Changes to user's home directory.

           8.   If ~/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists,
                runs it; otherwise runs xauth.  The ``rc'' files are given the
                X11 authentication protocol and cookie in standard input.  See
                SSHRC, below.

           9.   Runs user's shell or command.

[azactam 在  2009-12-5 01:55 PM 作了最後編輯]



[如果你喜歡本文章,就按本文章之鮮花~送花給作者吧,你的支持就是別人的動力來源]
本文連接  
檢閱個人資料  發私人訊息  Blog  快速回覆 新增/修改 爬文標記

   

快速回覆
表情符號

更多 Smilies

字型大小 : |||      [完成後可按 Ctrl+Enter 發佈]        

溫馨提示:本區開放遊客瀏覽。
選項:
關閉 URL 識別    關閉 表情符號    關閉 Discuz! 代碼    使用個人簽名    接收新回覆信件通知
發表時自動複製內容   [立即複製] (IE only)


 



所在時區為 GMT+8, 現在時間是 2024-3-28 05:39 PM
清除 Cookies - 連絡我們 - TWed2k © 2001-2046 - 純文字版 - 說明
Discuz! 0.1 | Processed in 0.020248 second(s), 6 queries , Qzip disabled