Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/feed-rss2.php on line 8
ssh – unethost無限空間虛擬主機 技術分享部落格 https://blog.unethost.com unethost 專注於提供優質的虛擬主機服務及相關問題解答 Wed, 16 Mar 2016 05:49:50 +0000 zh-TW hourly 1 https://wordpress.org/?v=6.0.8 登入linux shell的登入及使用軟體介紹 https://blog.unethost.com/software_introduction_for_linux-shell/ Wed, 16 Mar 2016 05:47:18 +0000 http://blog.unethost.com/?p=3056 閱讀全文 登入linux shell的登入及使用軟體介紹]]> linux_shell_login_wp

我們在之前介紹過部份linux shell的指令或error fix:
像是: 如何操作 linux grep 指令,搜索內文或是匯出。
[教學]如何快速解決在linux shell下,執行rm會出現Argument list too long的問題
如何在centos上安裝 vim 及 nano 編輯器?

今天來介紹,登入linux shell的方式及軟體

 

1. ssh 軟體 putty。載點
linux_shell_login_01

2.下載後直接執行putty.exe,以及需要填入的資料(其他都保持預設即可)

ssh port的問題,請參考這一篇 (另外無限空間虛擬主機是 15678)

linux_shell_login_02

3. 輸入專屬的帳號(輸入完帳號就enter)或密碼(輸入完密碼就enter),
因為輸入密碼有加密,所以不會顯示出來。
另外密碼如果取太難很可以用複製的,在用滑鼠右鍵就可以貼上。

如果登入有誤,千萬不要硬登,不然ip會被防火牆封鎖
(在一定時間內連錯數次的話)

linux_shell_login_03
因為操作putty,對於非英文語系的檔案內容,可能會有相容性問題,
建議可以改用,有支援多語系的ssh軟體: pietty

載點

linux_shell_login_04

(本篇教學由unethost.com客服撰寫)

延伸閱讀:如何備份Cpanel後台安裝的套裝程式?

安裝上述的軟體,我們提供虛擬主機試用,七天滿意保證,
功能完整使用不受限制,歡迎點我申請。

]]>
已經上傳的檔案,但是透過 filezilla連進ftp,竟無法顯示檔案? https://blog.unethost.com/can_not_show_ftp_files_by_filezilla/ Fri, 24 Jul 2015 07:40:06 +0000 http://blog.unethost.com/?p=1004 閱讀全文 已經上傳的檔案,但是透過 filezilla連進ftp,竟無法顯示檔案?]]> 剛剛有客戶跟我們反應,他們透過程式上傳的圖檔,可以正常在網頁上瀏覽,但是使用filezilla 連進ftp後,竟無法顯示部份圖檔;改用cpaenl的檔案總管功能,又可以正常看到檔案,不知為何發生這樣的狀況呢?

 

ftp01

 

經我們使用 winscpputty(ssh) 連進該空間後,並進入其檔案路逕查看,發現檔案的檔名是呈現亂碼的狀態。

 

ftp02

 

ftp03

 

經查發現,這是 filezilla 中文顯示問題,我們有搜索到這個頁面
有一些教學是透過 filezilla 內部設定去修正,但有趣的是,剛好這次出錯的檔案,
切換成utf8或是big5格式,也都是無法正常顯示的,
表示還要在進一步查詢檔案檔名編碼格式,
但是處理到這邊,我們就回饋給客戶答覆,
並請他們直接改用英文+數字的檔名,才能一勞永逸。

]]>
如何快速調查檔案及資料夾所使用的容量 https://blog.unethost.com/how_to_check_account_used_quota/ Mon, 28 Jul 2014 08:16:44 +0000 http://blog.unethost.com/?p=815 閱讀全文 如何快速調查檔案及資料夾所使用的容量]]> 這篇教學,其實是我們針對unethost.com虛擬主機用戶所提供的,unethost.com的虛擬主機有搭配使用cpanel控制台,並有檔案總管的功能可使用,但唯一缺乏的指令,就是查看每個資料夾所使用的容量,以做空間容量的調節使用。

請參考我們下列說明:

1. 下載登入ssh的程式。請瀏覽網頁: http://ntu.csie.org/~piaip/pietty/
01

2.  解開所下載的程式,並執行。
02

3. 輸入您所使用的主機的IP (或是網域),port為: 15678,輸入後,請點下連線。
03

4. 請先輸入空間的帳號在點下鍵盤ENTER鍵後,
    在輸入密碼,並在點下鑑盤Enter鍵,輸入正確就會登入。 
   (帳號和密碼,可以用複製,貼上則是用滑鼠右鍵,而非平常使用的Ctrl-v功能)04

5. 正確登入後的畫面。
05

 

6.  通常檔案都是在 public_html底下,所以請輸入 cd public_html ,在ENTER 。
1

7. 請接著輸入 下列指令: du -sh *  (輸入後,請記得要ENTER) ,這時就會秀出public_html          底下的資料夾及檔案使用的容量大小。
2

8. 根據圖片發現 data 佔了 3.3G 容量,這時在使用 cd data切到 data資料夾底下後,
     在輸入一次 du -sh * ,這樣就可以逐步追查出,是什麼地方在消耗使用容量。

 

最後補充: 當您登入後,只顯示出下列字串:
Shell access is not enabled on your account!
If you need shell access please contact support.

這是因為權限問題,有些帳號預設是沒有開啟SSH的,將導致無法使用SSH,
這時請透過服務單連絡我們處理,我們就會去設定開啟。

]]>
如何透過shell script來做domain name的篩選 https://blog.unethost.com/shell_script_filtering/ Mon, 14 Jan 2013 06:37:21 +0000 http://blog.unethost.com/?p=207 閱讀全文 如何透過shell script來做domain name的篩選]]> 如果從cpanel WHM抓出所有主機的域名(domain name)時,往往會發現,子域名(sub domain) 和頂層域名(top level domain) 是混雜的。

這時候,可以用基本的sed來做篩選。做法如下:
在一個文字檔 list 裡放所有的域名,例如:

aa.bb.com
cc.net
1123.org
1aa.bbcd.com

下指令:
cat list | sed -e “/[^\.]*\.[^\.]*\.[^\.]*/d” | sort

即可抓出所有想要的top level domain。( 這個指令的功能就是把所有的sub domain刪去而已。)

]]>
如何修改ssh的登入port https://blog.unethost.com/modify_ssh_login_port/ Mon, 14 Mar 2011 07:50:30 +0000 http://blog.unethost.com/?p=56 閱讀全文 如何修改ssh的登入port]]> vim /etc/ssh/sshd_config
修改
#Port 22
改成
Port  {你要的port}
確定對於新的這個port,你有開防火牆
service sshd restart
]]>