我正在尝试使用以下命令将文件从我的计算机发送到服务器:
scp -v file.txt username@server:~/file.txt
Run Code Online (Sandbox Code Playgroud)
这是输入密码后的日志:
debug1: Authentication succeeded (password).
Authenticated to `server` ([`server_ip`]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_CA.UTF-8
debug1: Sending command: scp -v -t ~/file.txt
Run Code Online (Sandbox Code Playgroud)
有~/.bashrc
,这可能会干扰远程命令(例如scp
)。
module load LANG/PYTHON/2.7.6
module load TOOLS/TMUX/2.1
Run Code Online (Sandbox Code Playgroud)
如果你想做这样的事情,你应该只在交互式 shell 上做(不要破坏脚本)。您可以添加到您的开头~/.bashrc
:
[ -z "$PS1" ] && return
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3162 次 |
最近记录: |