小编sti*_*ibi的帖子

由于 /etc/profile.d 中的脚本以退出状态 1 退出,因此无法使用 SSH 登录服务器

所以我遇到了这个问题,我无法使用 SSH 登录到我的服务器。\n请参阅:

\n\n
ssh -v myuser@myserver\ndebug1: Authentication succeeded (password).\ndebug1: channel 0: new [client-session]\ndebug1: Requesting no-more-sessions@openssh.com\ndebug1: Entering interactive session.\ndebug1: Sending environment.\ndebug1: Sending env LANG = en_US.UTF-8\nLast login: Sun Jul  5 20:10:54 2015 from x.x.x.x\n-bash: KSH_VERSION: unbound variable\ndebug1: client_input_channel_req: channel 0 rtype exit-status reply 0\ndebug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0\ndebug1: channel 0: free: client-session, nchannels 1\nConnection to x.x.x.x closed.\nTransferred: sent 2264, received 2800 bytes, in 0.2 seconds\nBytes per second: sent 13241.8, received 16376.8\ndebug1: Exit status 1\n
Run Code Online (Sandbox Code Playgroud)\n\n

问题是“-bash:KSH_VERSION:未绑定变量”,我认为这会终止连接。\n我知道为什么会发生\xe2\x80\xa6我正在处理放置在/etc/profile.d中的脚本,并且这个脚本中有“set -euo …

shell bash ssh

4
推荐指数
1
解决办法
8305
查看次数

标签 统计

bash ×1

shell ×1

ssh ×1