#346 ✓invalid
Kevin Nash

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

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket