Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:

ssh remoteHost

Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx

remoteHost:user:~$ ls

<shows all the stuff>

but when I try to execute a command via the SSH command line option, I always get:

ssh remoteHost ls

"ls" isn't allowed to be executed.

Killed by signal 1.

I can successfully execute the ssh command on some hosts, but not others.

Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?

FWIW, I did have a look at How to enable using commands on remote host using ssh without password?How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.

Update:

On the remote host, I have an authorized_keys2 file that contains something like this:

ssh-rsa <encrypted stuff> jumpbox_user@jumpbox
ssh-rsa <encrypted stuff> jumpbox_user@mydesktop

My ssh/.config file looks like this:

Host remoteHost
  HostName remoteHost
  User user
  ProxyCommand ssh -W %h:%p jumpbox_user@jumpbox_host
  ServerAliveInterval 60

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:

ssh remoteHost

Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx

remoteHost:user:~$ ls

<shows all the stuff>

but when I try to execute a command via the SSH command line option, I always get:

ssh remoteHost ls

"ls" isn't allowed to be executed.

Killed by signal 1.

I can successfully execute the ssh command on some hosts, but not others.

Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?

FWIW, I did have a look at How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.

Update:

On the remote host, I have an authorized_keys2 file that contains something like this:

ssh-rsa <encrypted stuff> jumpbox_user@jumpbox
ssh-rsa <encrypted stuff> jumpbox_user@mydesktop

My ssh/.config file looks like this:

Host remoteHost
  HostName remoteHost
  User user
  ProxyCommand ssh -W %h:%p jumpbox_user@jumpbox_host
  ServerAliveInterval 60

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:

ssh remoteHost

Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx

remoteHost:user:~$ ls

<shows all the stuff>

but when I try to execute a command via the SSH command line option, I always get:

ssh remoteHost ls

"ls" isn't allowed to be executed.

Killed by signal 1.

I can successfully execute the ssh command on some hosts, but not others.

Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?

FWIW, I did have a look at How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.

Update:

On the remote host, I have an authorized_keys2 file that contains something like this:

ssh-rsa <encrypted stuff> jumpbox_user@jumpbox
ssh-rsa <encrypted stuff> jumpbox_user@mydesktop

My ssh/.config file looks like this:

Host remoteHost
  HostName remoteHost
  User user
  ProxyCommand ssh -W %h:%p jumpbox_user@jumpbox_host
  ServerAliveInterval 60
Tweeted twitter.com/StackUnix/status/699620113197219842
added 196 characters in body
Source Link
firtydank
  • 199
  • 1
  • 6

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:

ssh remoteHost

Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx

remoteHost:user:~$ ls

<shows all the stuff>

but when I try to execute a command via the SSH command line option, I always get:

ssh remoteHost ls

"ls" isn't allowed to be executed.

Killed by signal 1.

I can successfully runexecute the abovessh command on Unix servers that I have direct access tosome hosts, but all hosts that are behind a jumpbox give the same problem (I'm not sure the jumpbox is the issue though)others.

Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?

FWIW, I did have a look at How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.

Update:

On the remote host, I have an authorized_keys2 file that contains something like this:

ssh-rsa <encrypted stuff> jumpbox_user@jumpbox
ssh-rsa <encrypted stuff> jumpbox_user@mydesktop

My ssh/.config file looks like this:

Host remoteHost
  HostName remoteHost
  User user
  ProxyCommand ssh -W %h:%p jumpbox_user@jumpbox_host
  ServerAliveInterval 60

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:

ssh remoteHost

Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx

remoteHost:user:~$

but when I try to execute a command via the SSH command line option, I always get:

ssh remoteHost ls

"ls" isn't allowed to be executed.

Killed by signal 1.

I can successfully run the above on Unix servers that I have direct access to, but all hosts that are behind a jumpbox give the same problem (I'm not sure the jumpbox is the issue though).

Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?

FWIW, I did have a look at How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.

Update:

On the remote host, I have an authorized_keys2 file that contains something like this:

ssh-rsa <encrypted stuff> jumpbox_user@jumpbox
ssh-rsa <encrypted stuff> jumpbox_user@mydesktop

My ssh/.config file looks like this:

Host remoteHost
  HostName remoteHost
  User user
  ProxyCommand ssh -W %h:%p jumpbox_user@jumpbox_host
  ServerAliveInterval 60

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:

ssh remoteHost

Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx

remoteHost:user:~$ ls

<shows all the stuff>

but when I try to execute a command via the SSH command line option, I always get:

ssh remoteHost ls

"ls" isn't allowed to be executed.

Killed by signal 1.

I can successfully execute the ssh command on some hosts, but not others.

Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?

FWIW, I did have a look at How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.

Update:

On the remote host, I have an authorized_keys2 file that contains something like this:

ssh-rsa <encrypted stuff> jumpbox_user@jumpbox
ssh-rsa <encrypted stuff> jumpbox_user@mydesktop

My ssh/.config file looks like this:

Host remoteHost
  HostName remoteHost
  User user
  ProxyCommand ssh -W %h:%p jumpbox_user@jumpbox_host
  ServerAliveInterval 60
added 196 characters in body
Source Link
firtydank
  • 199
  • 1
  • 6

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:

ssh remoteHost

Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx

remoteHost:user:~$

but when I try to execute a command via the SSH command line option, I always get:

ssh remoteHost ls

"ls" isn't allowed to be executed.

Killed by signal 1.

I can successfully run the above on Unix servers that I have direct access to, but all hosts that are behind a jumpbox give the same problem (I'm not sure the jumpbox is the issue though).

Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?

FWIW, I did have a look at How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.

Update:

On the remote host, I have an authorized_keys2 file that contains something like this:

ssh-rsa <encrypted stuff> jumpbox_user@jumpbox
ssh-rsa <encrypted stuff> jumpbox_user@mydesktop

My ssh/.config file looks like this:

Host remoteHost
  HostName remoteHost
  User user
  ProxyCommand ssh -W %h:%p jumpbox_user@jumpbox_host
  ServerAliveInterval 60

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:

ssh remoteHost

Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx

remoteHost:user:~$

but when I try to execute a command via the SSH command line option, I always get:

ssh remoteHost ls

"ls" isn't allowed to be executed.

Killed by signal 1.

I can successfully run the above on Unix servers that I have direct access to, but all hosts that are behind a jumpbox give the same problem (I'm not sure the jumpbox is the issue though).

Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?

FWIW, I did have a look at How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.

Update:

On the remote host, I have an authorized_keys2 file that contains something like this:

ssh-rsa <encrypted stuff> jumpbox_user@jumpbox
ssh-rsa <encrypted stuff> jumpbox_user@mydesktop

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:

ssh remoteHost

Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx

remoteHost:user:~$

but when I try to execute a command via the SSH command line option, I always get:

ssh remoteHost ls

"ls" isn't allowed to be executed.

Killed by signal 1.

I can successfully run the above on Unix servers that I have direct access to, but all hosts that are behind a jumpbox give the same problem (I'm not sure the jumpbox is the issue though).

Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?

FWIW, I did have a look at How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.

Update:

On the remote host, I have an authorized_keys2 file that contains something like this:

ssh-rsa <encrypted stuff> jumpbox_user@jumpbox
ssh-rsa <encrypted stuff> jumpbox_user@mydesktop

My ssh/.config file looks like this:

Host remoteHost
  HostName remoteHost
  User user
  ProxyCommand ssh -W %h:%p jumpbox_user@jumpbox_host
  ServerAliveInterval 60
added 209 characters in body
Source Link
firtydank
  • 199
  • 1
  • 6
Loading
edited body
Source Link
firtydank
  • 199
  • 1
  • 6
Loading
Source Link
firtydank
  • 199
  • 1
  • 6
Loading