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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- -bash: id: command not found -bash: tty: command not found
- nodemon: command not found
- pip: command not found
- zsh:command not found: xxx
- mac mysql: command not foundMacMySql
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- Mac -bash: mysql: command not foundMacMySql
- sudo: apt-get: command not foundapt-get
- centos 7 -bash: mysql: command not foundCentOSMySql
- 【Linux】git note -v command not foundLinuxGit
- 【linux報錯】-bash: xhost: command not foundLinux
- bash: lspci: command not found解決方法
- -bash: XXX: command not found解決辦法
- python virtualenv報錯-bash: virtualenv: command not foundPython
- bash: ssh-copy-id: command not found...
- zsh: command not found: bee bee工具安裝
- Mac之telnet報錯-bash: telnet: command not foundMac
- 解決bash: mysql: command not found的問題MySql
- Mac終端出現 brew command not found 解決Mac
- zabbix_get :command not found 解決辦法
- Linux提示crontab command not found的解決方法Linux
- “command-not-found has crashed” 解決辦法 (*unsolved)
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- 解決shell指令碼錯誤$’r’ command not found指令碼
- 解決 biolinux-conda command not found 2018-05-04Linux
- Error executing Jupyter command 'notebok': [Errno 'jupyter-notebok' not found] 2Error
- CentOS 7 命令 lsb_release: command not found 解決方案CentOS
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- bug solved | zsh: command not found: mongo (Mac M1/M2 )GoMac
- test.sh: line 3: $‘\r‘: command not found 或者 vim去掉^M字元字元
- 踩坑記錄:vue-cli-service: command not found(Mac環境下)VueMac
- CentOS 已安裝virtualenv, 但還是報錯誤 bash: virtualenv: command not foundCentOS
- 阿里雲伺服器Centos映象解決方案apt-get: command not found阿里伺服器CentOSapt-get
- scp
- scp命令
- SCP 2024
- linux命令---scpLinux
- 常用scp命令