Permalink
Browse files

Merge pull request #1 from databus23/master

regex to filter comments in authorized_keys file not working
  • Loading branch information...
2 parents 10a388a + 83f1c3f commit e88b297b3e193cb49a85ba41f74f1de67b78422e @jordansissel committed Aug 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ssh/key/verifier.rb
@@ -200,7 +200,7 @@ def authorized_keys
@logger.info("AuthorizedKeysFile ==> #{authorized_keys_file}")
File.new(authorized_keys_file).each do |line|
next if line =~ /^\s*$/ # Skip blanks
- next if line =~ /^\s*\#$/ # Skip comments
+ next if line =~ /^\s*\#/ # Skip comments
@logger.info line
comment = nil

0 comments on commit e88b297

Please sign in to comment.