Skip to content

Commit

Permalink
Merge pull request #1 from databus23/master
Browse files Browse the repository at this point in the history
regex to filter comments in authorized_keys file not working
  • Loading branch information
jordansissel committed Aug 22, 2011
2 parents 10a388a + 83f1c3f commit e88b297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ssh/key/verifier.rb
Expand Up @@ -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
Expand Down

0 comments on commit e88b297

Please sign in to comment.