Skip to content
Browse files

added options directive in ashrc such as -X for X forwarding

  • Loading branch information...
1 parent 1fd1ba9 commit 6bcd9cccc75d7aa1454a86554adaf45038778e93 Chas wareing committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 ash
View
6 ash
@@ -58,6 +58,8 @@ stuff.each do|k,v|
$tunnel_user = "-l #{value} "
when "screen"
$screen = "screen -x -r #{value} "
+ when "options"
+ $options = "#{value}"
end
end
@@ -65,10 +67,10 @@ stuff.each do|k,v|
system(cmd)
if $tunnel != ""
- cmd = "ssh -i #{sshrc} -A #{$tunnel} #{$tunnel_user} #{$tunnel_port} \"#{$screen} ssh #{$port} -t #{$fqdn} #{$user}\""
+ cmd = "ssh #{$options} -i #{sshrc} -A #{$tunnel} #{$tunnel_user} #{$tunnel_port} \"#{$screen} ssh #{$port} -t #{$fqdn} #{$user}\""
else
sshrcPlain=sshrc.gsub(".gpg", "")
- cmd = "ssh -i #{sshrc} -A #{$port} #{$user} #{$fqdn} -t #{$screen}"
+ cmd = "ssh #{$options} -i #{sshrc} -A #{$port} #{$user} #{$fqdn} -t #{$screen}"
end
system(cmd)
system(postCmd)

0 comments on commit 6bcd9cc

Please sign in to comment.
Something went wrong with that request. Please try again.