English 中文(简体)
用 ssh 会话使用 rl wrap
原标题:Using rlwrap with an ssh session

我正使用 SSH 登录到 ubuntu 服务器。 但是, 我无法使用标签自动完成等命令, 或使用箭头键查看过去的历史。 我在远程机器和本地目录上安装了 rl wrap 。 我在想是否有办法使用 rlbrap 来允许我在服务器( 或其他东西) 上使用这些快捷键。 服务器正在运行 Ubuntu 服务器版本 10. 0.4 。

最佳回答

检查远程服务器上的 shell, 如果不是/bin/bash, 请将其更改为 /bin/bash


    chsh /bin/bash
问题回答

我很难理解您的问题( 例如, 您在远程服务器上运行什么命令? 您的本地目录是什么? 如何安装 rl wrap? 。 您登录 shell 的输入历史是否正常?

总而言之:

  • When an interactive command doesn t have a usable (by way of the arrow keys) input history, type rlwrap in front of the command name. E.g.: rlwrap sqlplus instead of just sqlplus
  • If you cannot use your arrow keys at all, even in your login shell, something is wrong with your installation. In that case you ll have to ask the remote machine s system administrator to help you. You could run rlwrap ssh remote.host from a shell prompt on your local machine as a stop-gap measure




相关问题
eclipse (3.5 & 3.6) crashes in ubuntu

i have a problem with eclipse within ubuntu 10.04 (x86). i installed eclipse by downloading the zip-file, not from the sources. everything worked just fine until i decided to try eclipse 3.6 which i ...

correct configuration for apache and mod_python

hi all, how you must configure Apache 2.2 or mod_python?, to avoid the following error: MOD_PYTHON ERROR ProcessId: 5399 Interpreter: 127.0.1.1 ServerName: 127.0.1.1 DocumentRoot: /...

Error in paper clip plugin in rails

Image Paperclip::CommandNotFoundError I am getting this error. Installed Image magick, rmagic both specified path in developement.rb Paperclip.options[:command_path] = "/opt/local/bin" Using Snow ...

Running Trac 0.12 on Ubuntu 10.04 - Error

I ve installed trac 0.12 on my ubuntu 10.04, running the tracd internal webserver. When i access the page at http://127.0.0.1/myTracProject, I get the error message: Traceback (most recent call last)...

Ubuntu One Folder Sync Filter

I am trying to modify the Ubuntu One File syncing python scripts to not including things like .iso s. I have got as far as finding this file: /usr/share/pyshared/ubuntuone/u1sync/constants.py Inside ...

what is cairo required by GTK 2.9 to compile (on Lucid Lynx)?

I have been trying to run configure to prepare the make file for GTK 2,9 on a fresh Linux box (running Ubuntu 10.04 Lucid Lynx). it complained about some dependencies, including: glib-2.0 atk (1.29....

热门标签