Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

as user not working????

Open
#361 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby
Domain
devops

Research direction

Start by reproducing the two Ruby snippets using the SSHKit DSL entry points shown in the issue, comparing as 'jbrein' with host.user = 'jbrein'. Confirm whether the as form should avoid the password prompt and document the observed behavior or identify the missing configuration needed for it to work.

Written by the indexing model from the issue text.

Description

chore help wanted
#!/usr/bin/env ruby
require 'sshkit'                               
require 'sshkit/dsl'                           
include SSHKit::DSL                            


on %w{srv16} do |host|
  as 'jbrein' do
    execute 'whoami'                           
  end                                          
end

Triggers:

vagrant@srv16  password::

where:

#!/usr/bin/env ruby
require 'sshkit'
require 'sshkit/dsl'
include SSHKit::DSL


on %w{srv16} do
  host.user = 'jbrein'
  execute 'whoami'
end

I get:

INFO [d05e2de1] Running /usr/bin/env whoami as jbrein@srv16
INFO [d05e2de1] Finished in 1.172 seconds with exit status 0 (successful).

I hope I'm doing something wrong.. don't know what because I believe I'm following the documentation strictly...

Thanks

Dominant language
Ruby
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from capistrano/sshkit

All issues in capistrano/sshkit

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.