lib/ztk/ssh.rb in ztk-1.6.3 vs lib/ztk/ssh.rb in ztk-1.6.4
- old
+ new
@@ -17,11 +17,11 @@
# ui = ZTK::UI.new(:stdout => std_combo, :stderr => std_combo)
# ssh = ZTK::SSH.new(:ui => ui)
#
# If you want to specify SSH options you can:
#
- # keys = File.expand_path(File.join(Dir.home, '.ssh', 'id_rsa'))
+ # keys = File.expand_path(File.join(ENV['HOME'], '.ssh', 'id_rsa'))
# ssh = ZTK::SSH.new(:host_name => '127.0.0.1', :user => ENV['USER'], :keys => keys)
#
# = Configuration Examples:
#
# To proxy through another host, for example SSH to 192.168.1.1 through 192.168.0.1:
@@ -34,11 +34,11 @@
# end
#
# Specify an identity file:
#
# ssh.config do |config|
- # config.keys = File.expand_path(File.join(Dir.home, '.ssh', 'id_rsa'))
- # config.proxy_keys = File.expand_path(File.join(Dir.home, '.ssh', 'id_rsa'))
+ # config.keys = File.expand_path(File.join(ENV['HOME'], '.ssh', 'id_rsa'))
+ # config.proxy_keys = File.expand_path(File.join(ENV['HOME'], '.ssh', 'id_rsa'))
# end
#
# Specify a timeout:
#
# ssh.config do |config|