SSH Permission denied when passing commands between servers after period of time
Reported by Kevin Nash | June 20th, 2011 @ 07:39 PM
I'm attempting a command over SSH:
ssh USER@HOSTNAME "uname -a"
I'm getting permission denied errors.
I have keys setup between the rundeck host and the remote server. I can terminal ssh between machines without issue and without a password.
Rundeck appears to be able to do this intermittently. I notice I
am usually able to run the command successfully with rundeck so
after bouncing the rundeck application, but after several attempts
(or a certain period of time like an hour or so) I no longer
can.
Log output:
07:33:08 [USER@HOSTNAME ][CONFIG] NodeSet: NodeSet{}
07:33:08 [USER@HOSTNAME ][CONFIG] Workflow:
WorkflowImpl{commands=[command( exec: ssh USER@REMOTENODE "uname
-a")], threadcount=1, keepgoing=false, strategy=node-first}
07:33:08 [USER@HOSTNAME ][CONFIG] data context:
{job={project=Project, username=USER, name=test, group=test},
option=null}
07:33:08 [USER@HOSTNAME ][CONFIG] 1: command( exec: ssh
USER@REMOTENODE "uname -a")
07:33:08 [USER@HOSTNAME ][CONFIG] ExecutionItem created, executing:
dscript:
com.dtolabs.rundeck.execution.BaseWorkflowStrategy$3@730d4fcf
07:33:08 [USER@HOSTNAME ][CONFIG] added build listener
07:33:08 [USER@HOSTNAME ][FINEST] Adding reference:
com.dtolabs.rundeck.core.cli.DefaultNodeDispatcher:node.name
07:33:08 [USER@HOSTNAME ][FINEST] Adding reference:
com.dtolabs.rundeck.core.cli.DefaultNodeDispatcher:node.user
07:33:08 [USER@HOSTNAME ][FINEST] executeNodeDispatch: number of
nodes to dispatch to: 1, (threadcount=1)
07:33:08 [USER@HOSTNAME ][FINEST] preparing for sequential
execution...
07:33:08 [USER@HOSTNAME ][FINEST] Executing command on node:
HOSTNAME,
NodeEntryImpl{nodename=HOSTNAME,hostname=HOSTNAME,type=Node,osName=Linux,osArch=amd64,osFamily=unix,osVersion=2.6.18-238.9.1.el5xen,username=USER,tags=[],attributes={remoteUrl=,
editUrl=}}
07:33:08 [USER@HOSTNAME ][CONFIG] preparing for local execution
...
07:33:08 [USER@HOSTNAME ][CONFIG] exectask
07:33:08 [USER@HOSTNAME ][CONFIG] command proxy instance of
org.apache.tools.ant.taskdefs.Sequential
07:33:08 [USER@HOSTNAME ][FINEST] Adding reference:
ant.LocalProperties
07:33:08 [USER@HOSTNAME ][CONFIG] Current OS is Linux
07:33:08 [USER@HOSTNAME ][CONFIG] Project base dir set to:
/tls/shared/home/USER/rundeck
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_DESCRIPTION=Rundeck server node
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_OS_ARCH=amd64
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_JOB_NAME=test
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_HOSTNAME=HOSTNAME
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_TAGS=
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_NAME=HOSTNAME
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_JOB_PROJECT=Jetson
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_OS_VERSION=2.6.18-238.9.1.el5xen
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_USERNAME=USER
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_OS_FAMILY=unix
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_JOB_GROUP=test
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_JOB_USERNAME=USER
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_TYPE=Node
07:33:08 [USER@HOSTNAME ][CONFIG] Setting environment variable:
RD_NODE_OS_NAME=Linux
07:33:08 [USER@HOSTNAME ][CONFIG] Executing '/bin/sh' with
arguments:
'-c' 'ssh USER@REMOTENODE 'uname -a''
The ' characters around the executable and arguments are
not part of the command.
07:33:08 [USER@HOSTNAME ][FINEST] Execute:Java13CommandLauncher:
Executing '/bin/sh' with arguments:
'-c' 'ssh USER@REMOTENODE 'uname -a''
Comments and changes to this ticket
-
Greg Schueler June 21st, 2011 @ 03:43 PM
so you are attempting to dispatch the entire command "ssh USER@REMOTENODE 'uname -a'" ?
If you are trying to run "uname -a" on a remote node, simply set the command to "uname -a" and configure your node filter to include the remote node...
-
Greg Schueler June 22nd, 2012 @ 10:52 AM
- State changed from new to unconfirmed
- Assigned user set to Greg Schueler
-
Greg Schueler June 22nd, 2012 @ 10:52 AM
- State changed from unconfirmed to invalid
-
Liam Smith July 31st, 2023 @ 02:54 AM
Check for any changes in the SSH server's configuration on the remote server that mapquest directions might be affecting the authentication process.
-
victorpatrick January 2nd, 2024 @ 06:17 PM
Verify whether the build now gg configuration of the SSH server has changed on the remote server.
-
Lyly June 10th, 2024 @ 11:42 PM
Despite properly setting up SSH keys, Rundeck encountered intermittent SSH access errors. It is necessary to recheck key permissions, configure the Rundeck service user environment, Retro Bowl and increase log granularity to determine the exact cause.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues