aix_ssh scp command not found
vi /etc/environment
PATH=/usr/local/bin:$PATH
[@more@]> scp: Command not found.
> lost connection
Add /usr/local/bin to the end of the line containing 'PATH' in
/etc/environment on the AIX box. No further action needed -- it will work
on the next scp attempt.
/etc/environment (on an AIX machine) always gets executed, even for
non-interactive logins, so if /usr/local/bin is listed in PATH there, scp
will work correctly.
It is best to make sure /usr/local/bin is listed at the *end* of the PATH
definition or you may run into some seriously weird stuff in very specific
and unique situations (as we did, once or twice).
In that case, it was running GNU awk rather than AIX awk, which broke SMIT
in very interesting ways for a specific SMIT menu screen. Rearranging PATH
to use /usr/local/bin *last* made everything work again and preserved other
functionality such as ssh/scp.
============================
bash: scp: command not found
Hi Arnab,
I assume you are trying to scp to an AIX server? If so, then do:
# vi /etc/environment
(or use your favorite text editor -- nano, pico, emacs, etc.)
and add one line at the end of that file:
PATH=/usr/local/bin:$PATH
Then retry the scp command.
I am not sure about the tcgetattr error; that is a strange one, but the
environment modification will help with the 'scp: command not found'
error.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8806316/viewspace-1015860/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- pip: command not found
- mac mysql: command not foundMacMySql
- express: command not found.Express
- Mac -bash: mysql: command not foundMacMySql
- -bash :gradlew command not foundGradle
- 解決 command not found: expressExpress
- bash: hadoop: command not foundHadoop
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- sudo: apt-get: command not foundapt-get
- sqlplus: command not found解決SQL
- bash: lspci: command not found解決方法
- 【linux報錯】-bash: xhost: command not foundLinux
- zsh: command not found: bee bee工具安裝
- "mkimage" command not found - U-Boot images will not be builtbootUI
- bash: ssh-copy-id: command not found...
- 解決bash: mysql: command not found的問題MySql
- Mac終端出現 brew command not found 解決Mac
- python virtualenv報錯-bash: virtualenv: command not foundPython
- 解決shell指令碼錯誤$’r’ command not found指令碼
- -bash: XXX: command not found解決辦法
- Linux提示crontab command not found的解決方法Linux
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- CentOS 7 命令 lsb_release: command not found 解決方案CentOS
- Mac之telnet報錯-bash: telnet: command not foundMac
- 安裝Qt過程中出現g++: command not foundQT
- RHEL7 解決xclock的 bash: xclock: command not found…
- Mommy, I found it! — 15 Practical Linux Find Command ExamplesLinux
- “command-not-found has crashed” 解決辦法 (*unsolved)
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- Linux Shell執行source或.命令報錯'bash: ..: command not found'Linux
- 【轉】linux root使用者ifconfig報command not foundLinux
- SUSE Linux執行基本命令出現command-not-foundLinux
- 踩坑記錄:vue-cli-service: command not found(Mac環境下)VueMac
- test.sh: line 3: $‘\r‘: command not found 或者 vim去掉^M字元字元
- bug solved | zsh: command not found: mongo (Mac M1/M2 )GoMac
- Linux命令未找到(command not found),誤刪Linux path原始路徑Linux
- Error executing Jupyter command 'notebok': [Errno 'jupyter-notebok' not found] 2Error