[問題] 停用bash熱鍵後無法透過SFTP登入Linux
我在.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
![](http://www.dumpt.com/img/viewer.php?file=e39uhtkcgwaoieh1sqog.jpg)
![](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會出現這問題...)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.32
※ 編輯: Holocaust123 來自: 140.112.30.32 (12/08 02:29)