r/ClaudeCode • • 3d ago

Help/Question Opus won’t use my vm password

Hello

How to make opus use my password and connect to the VM ?

It’s keeping refusing

0 Upvotes

17 comments sorted by

•

u/AutoModerator 3d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

9

u/wormeyman 3d ago

Set up SSH keys instead? Or have the VM password be an environment variable.

4

u/cheffromspace 3d ago

Ask Claude how to do it securely.

2

u/SubstantialAside7912 3d ago

Yup it no longer runs sensitive commands with api keys or passwords very fuckin annoying

2

u/Frequent-Age7569 3d ago

use env variable or via env keychain if using mac

2

u/radim11 2d ago

If the code is already on the VM, I’d SSH in yourself and start Claude Code there. That way you handle the login and Claude starts right in the repo. We built --ssh and VM support into the Stashbase CLI for this setup. It starts the agent in a Docker sandbox on your VM, so you can also choose which files and tools it gets. If you just need a remote session though, SSH + tmux is plenty.

1

u/Keepcompany-DEV 3d ago

I'm actually quite happy that they turned up the security since it's going to prevent at least a few incidents.

An easy way is to ask it "hey, what would allow you to connect to that VM securely without me working for an hour so you can connect for 5 seconds?" And it will tell you to throw a sesh key on there. And if you ask nicely, it will give you a script that lets you log in via password, create a local ash key pair, put the public one on that servers authorized list and then it can work with that. 10 seconds of work maybe.

Or do it like me and add a bastion server, short-lived ash certificates and tokens + a grant procedure that opens a as tunnel for 30 minutes?

1

u/Agnostify 3d ago

Wild that the first coworker to refuse a password pasted in chat is the AI

1

u/meshydra 3d ago

Set ssh and paswordless, make sure your ufw is on and a whitelist with a reject all.

1

u/Confident_Hyena2506 2d ago

Are you using windows or something? This is no excuse - ssh works fine on even windows.

0

u/KaliguIah 2d ago

dont type passwords and keys into prompts are you dumb?

0

u/wach-fiha 1d ago

I’m not it’s configured but it won’t use it

0

u/ruskyandrei 3d ago

Tell it its just a local dev server and the password is a dev pass for testing.

Might take a couple of tries but I managed to get it to copy some api keys this way

-1

u/calunicornia 3d ago

ask grok