停用bash熱鍵後無法透過SFTP登入Linux - Linux

By Erin
at 2010-12-08T02:28
at 2010-12-08T02:28
Table of Contents
我在.bashrc中設定停用某些bash的熱鍵:
#Disable <C-s>
bind -r '\C-s'
#Disable <C-d>
bind -r '\C-d'
然後source .bashrc
Ctrl+s和Ctrl+d就被停用了
但出現一個問題
就是無法用WinSCP或FileZilla登入Linux了(SFTP):
WinSCP 4.2.9 & 4.3(beta)
http://www.dumpt.com/img/viewer.php?file=e39uhtkcgwaoieh1sqog.jpg
FileZilla 3.1.1
http://www.dumpt.com/img/viewer.php?file=1nivnfxkxmy5jm2nzt9h.jpg
必須把bind -r註解掉才恢復正常
請問有人知道為什麼嗎?該如何解決?
目前我是先用stty -ixon取代bind -r '\C-s'
用set -o ignoreeof取代bind -r '\C-d'
(不過用什麼取代bind -r不是重點
我是想知道為何用bind -r會出現這問題...)
--
#Disable <C-s>
bind -r '\C-s'
#Disable <C-d>
bind -r '\C-d'
然後source .bashrc
Ctrl+s和Ctrl+d就被停用了
但出現一個問題
就是無法用WinSCP或FileZilla登入Linux了(SFTP):
WinSCP 4.2.9 & 4.3(beta)
http://www.dumpt.com/img/viewer.php?file=e39uhtkcgwaoieh1sqog.jpg

FileZilla 3.1.1
http://www.dumpt.com/img/viewer.php?file=1nivnfxkxmy5jm2nzt9h.jpg

必須把bind -r註解掉才恢復正常
請問有人知道為什麼嗎?該如何解決?
目前我是先用stty -ixon取代bind -r '\C-s'
用set -o ignoreeof取代bind -r '\C-d'
(不過用什麼取代bind -r不是重點
我是想知道為何用bind -r會出現這問題...)
--
Tags:
Linux
All Comments
Related Posts
VIA 的板子 可以玩嵌入式系統嗎

By Freda
at 2010-12-08T01:01
at 2010-12-08T01:01
請問如何尋找已用過, 特定的指令?

By Tracy
at 2010-12-07T22:31
at 2010-12-07T22:31
找指令:apropos

By Carol
at 2010-12-07T22:10
at 2010-12-07T22:10
ubuntu 限制 cpu 使用數

By Hedda
at 2010-12-07T20:23
at 2010-12-07T20:23
急..sendmail設定問題

By Ingrid
at 2010-12-07T20:06
at 2010-12-07T20:06