You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to access my local OrbStack machines via Ruby's net/ssh package so I can locally test some machine building scripts but DNS resolution is not working. Anyone know how to get Net::SSH to work with OrbStack's SSH configuration?
> require 'net/ssh'
=> true
> Net::SSH.start("root@ubuntu@orb")
/Users/mperham/.rubies/ruby-3.3.3/lib/ruby/3.3.0/socket.rb:231:in `getaddrinfo': getaddrinfo: nodename nor servname provided, or not known (Socket::ResolutionError)
from /Users/mperham/.rubies/ruby-3.3.3/lib/ruby/3.3.0/socket.rb:231:in `foreach'
from /Users/mperham/.rubies/ruby-3.3.3/lib/ruby/3.3.0/socket.rb:637:in `tcp'
from /Users/mperham/.gem/ruby/3.3.3/gems/net-ssh-7.3.0/lib/net/ssh/transport/session.rb:72:in `initialize'
from /Users/mperham/.gem/ruby/3.3.3/gems/net-ssh-7.3.0/lib/net/ssh.rb:258:in `new'
from /Users/mperham/.gem/ruby/3.3.3/gems/net-ssh-7.3.0/lib/net/ssh.rb:258:in `start'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to access my local OrbStack machines via Ruby's
net/ssh
package so I can locally test some machine building scripts but DNS resolution is not working. Anyone know how to get Net::SSH to work with OrbStack's SSH configuration?Here's the RDoc.
If I rejigger things a bit, OrbStack crashes:
Beta Was this translation helpful? Give feedback.
All reactions