所以我遇到了这个问题,我无法使用 SSH 登录到我的服务器。\n请参阅:
\n\nssh -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\nRun Code Online (Sandbox Code Playgroud)\n\n问题是“-bash:KSH_VERSION:未绑定变量”,我认为这会终止连接。\n我知道为什么会发生\xe2\x80\xa6我正在处理放置在/etc/profile.d中的脚本,并且这个脚本中有“set -euo …