X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fportforwarder%2Ftemplates%2Fauthorized_keys.erb;h=755f344b3b97d5af3a88688688f45812624163e3;hb=b56ddffb764246bad65b6358575c72468d7e3891;hp=ec11e54f67b6e5fec529f1e264ef0f1b16c20cc3;hpb=6f2e5fc86e49c12b12eef39fc69e0e810a32c318;p=mirror%2Fdsa-puppet.git diff --git a/modules/portforwarder/templates/authorized_keys.erb b/modules/portforwarder/templates/authorized_keys.erb index ec11e54f6..755f344b3 100644 --- a/modules/portforwarder/templates/authorized_keys.erb +++ b/modules/portforwarder/templates/authorized_keys.erb @@ -44,7 +44,7 @@ config.each_pair do |sourcehost, services| lines << "# insufficient config values" else command = "/usr/bin/portforwarder-ssh-wrap #{sourcehost} #{local_bind} #{allowed_ports.join(' ')}" - lines << "from=\"#{remote_ip}\",command=\"#{command}\",no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding #{sshkey}" + lines << "from=\"#{remote_ip}\",command=\"#{command}\",restrict #{sshkey}" end end end