2010年2月25日 星期四
ssh由a機登入b機,無法登入的解決方法!
當由a機登入b機,,而出現以下訊息,無法登入時!
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is e6:8e:c8:e4:85:33:72:e7:2e:04:35:65:bb:c2:2f:1d. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:1 RSA host key for 10.1.2.227 has changed and you have requested strict checking. Host key verification failed.
登入a機這邊,將/root/.ssh/know_host檔打開:
vi /root/.ssh/know_host
將其中關於b機的那一串記錄刪掉即可!
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is e6:8e:c8:e4:85:33:72:e7:2e:04:35:65:bb:c2:2f:1d. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:1 RSA host key for 10.1.2.227 has changed and you have requested strict checking. Host key verification failed.
登入a機這邊,將/root/.ssh/know_host檔打開:
vi /root/.ssh/know_host
將其中關於b機的那一串記錄刪掉即可!
2010年2月23日 星期二
在網頁管理介面下,選了強制ssl登入之後,就無法登入了。 想從ssh進去更改設定檔,但不知哪一個設定檔是在更改該設值的,以及如何更改?能否說明一下,
ssh admin帳號登入後,找到/etc/config/uLinux.conf這個設定檔裏的Force SSL =1,將1 改成0 就會變成非強制SSL 登入
Remote tool/Teamviewer , http://wiki.qnap.com/wiki/TeamViewer_setup_for_remote_desktop_connection
Download Teamviewer QS version HERE
Disclaimer:
Our advice is strictly limited to the question(s) asked and is based on the information provided to us. QNAP Systems Inc. does not assume any responsibility or liability for the advice given and shall not be liable for any direct, indirect, special, incidental or consequential damages in connection with the use of this information. Always back up your data. For more information, including technical information updates, please visit our website at http://www.qnap.com/
2010年2月20日 星期六
透過ssh定時自動備分。
在linux系統下。當要將a機的資料備份到b機時,首先將先在a機ssh模式下不用密碼能登入b機,做法要看http://yuhfa.blogspot.com/2009/12/ssh.html 這篇文章。
之後在a機的以vi編輯crontab:
打開後格式如下:
之後在a機的以vi編輯crontab:
打開後格式如下:
2010年2月17日 星期三
DM500S 檔案路徑說明
DM500帳號(CCcam.cfg)的上傳路徑:/var/etc/
衛星參數配置檔(Satellites.xml)的上傳路徑:/var/etc/
衛視節目台標文件(services)上傳路徑:/var/tuxbox/config/enigma/
上傳手動安裝檔路徑:/var/tmp- >tmp/
衛視節目破解文件(keys)上傳路徑:/var/keys/
PC硬碟內DM500檔夾上傳路徑:/var/mnt/hdd/或/hdd- >/var/mnt/hdd/
背景執行檔(尾碼分別為esml、info、png)上傳路徑:/var/tuxbox/config/enigma/skins/
DM500開機畫面圖片(easylogo.so和easylogo.cfg)文件存放位置:/var/tuxbox/plugin/
DM500協議插件(CCcam)存放位置:(1)/var/bin/;(2)/var/etc/(3)/var/script;(4)/var/tuxbox/plugins/(5)/var/uninstall/www.tvroe.com-
衛星參數配置檔(Satellites.xml)的上傳路徑:/var/etc/
衛視節目台標文件(services)上傳路徑:/var/tuxbox/config/enigma/
上傳手動安裝檔路徑:/var/tmp- >tmp/
衛視節目破解文件(keys)上傳路徑:/var/keys/
PC硬碟內DM500檔夾上傳路徑:/var/mnt/hdd/或/hdd- >/var/mnt/hdd/
背景執行檔(尾碼分別為esml、info、png)上傳路徑:/var/tuxbox/config/enigma/skins/
DM500開機畫面圖片(easylogo.so和easylogo.cfg)文件存放位置:/var/tuxbox/plugin/
DM500協議插件(CCcam)存放位置:(1)/var/bin/;(2)/var/etc/(3)/var/script;(4)/var/tuxbox/plugins/(5)/var/uninstall/www.tvroe.com-
2009年12月30日 星期三
兩台linux主機以ssh自動登入,不用打入密碼的方法!
以下內容,擔心以後系統重建後,資料的重找麻煩,所以還是決定把它記錄下來,以備以後不時之需:
ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa
Enter passphrase (empty for no passphrase):直接回車
ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa
Enter passphrase (empty for no passphrase):直接回車
2009年9月19日 星期六
2009年8月14日 星期五
Synology NAS是把crontab自動備分的另一個問題!
synology NAS使用crontab自動執行,一般都把問題注意到tab鍵與空白鍵的使用問題,但在更新韌體為DSM 2.1-0844版之後又遇到一個新的問題,那就是用root無法登入ssh只能以telnet登入,而ssh必須用admin才能登入,而因為root無法透過ssh登入,所以只好用admin登入,
2009年7月30日 星期四
Synology NAS是把crontab載入記憶體裡面,所以改完之後請重新啟動crond服務的語法
/usr/syno/etc/rc.d/S04crond.sh stop
/usr/syno/etc/rc.d/S04crond.sh start
/usr/syno/etc/rc.d/S04crond.sh start
QNAP 的 cron 排程檔位置與重新啟動指令語法
排程檔位置
/mnt/HDA_ROOT/.config/crontab
/etc/config/crontab
編輯它,然後執行
crontab /etc/config/crontab
重新啟動指令語法
/etc/init.d/crond.sh restart
目前試了上面的做法可以!
下面的做法重啟後,還是會回復到原來的設定!看來關鍵在/etc/config/crontab
總算找到好的改更crontab檔的方法了,那就是先將內容以vim這支程式寫完後,存成任意檔名,例如:newcrontab,然後輸入如下指令:
#crontab newcrontab
這樣就會直接更改系統內定的crontab內容,而不用再以crontab -e指令進入後一個一個改!
/etc/config/crontab
編輯它,然後執行
crontab /etc/config/crontab
重新啟動指令語法
/etc/init.d/crond.sh restart
目前試了上面的做法可以!
下面的做法重啟後,還是會回復到原來的設定!看來關鍵在/etc/config/crontab
總算找到好的改更crontab檔的方法了,那就是先將內容以vim這支程式寫完後,存成任意檔名,例如:newcrontab,然後輸入如下指令:
#crontab newcrontab
這樣就會直接更改系統內定的crontab內容,而不用再以crontab -e指令進入後一個一個改!
訂閱:
文章 (Atom)