我试图从Ssh 非互动ssh接线开始指挥。 为此,我使用了斜线连接。
In order to set everything up I used this article: http://www.raphink.info/2008/09/forcing-environment-in-ssh.html
I use ~/.ssh/environment. In order to do that, I set PermitUserEnvironment to "yes" in sshd_config and restarted sshd.
在我身上 我有以下内容:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/ubuntu/java/jdk1.6.0_27/bin
JAVA_HOME=/home/ubuntu/java/jdk1.6.0_27
#PATH=/home/ubuntu/java/jdk1.6.0_27/bin:$PATH
#PLAY_HOME=/home/ubuntu/play
在试图利用非互动联系时,我有错误:
[sshexec] Could not execute the java executable, please make sure the JAVA_HOME environment variable is set properly (the java executable should reside at JAVA_HOME/bin/java).
但我又走了这条路。