akr icon indicating copy to clipboard operation
akr copied to clipboard

Cannot setup

Open rtfpessoa opened this issue 4 years ago • 3 comments

Hello 👋,

Trying to migrate from kr to akr but getting an error.

Using an M1 mac with an iphone, not sure if this can be the reason to the error.

> akr setup
Error: File IO error: 'No such file or directory (os error 2)'

~~If I forget about do the setup manually by adding the needed part in .ssh/config by hand and start akr start, pair works but if I try to generate a key I get:~~

Today seems like if I start the daemon and generate a key it is working nice, but setup is still broken.

> akr start
> akr generate --name ssh

rtfpessoa avatar Nov 28 '21 23:11 rtfpessoa

I think I bypassed this by adding the directory ~/Library/LaunchAgents which didn't exist on my new Monterey install.

Found in the code here: https://github.com/akamai/akr/blob/master/crates/kr/src/launch.rs#L64-L71

shanewilson avatar Dec 03 '21 19:12 shanewilson

You have to remove kr installation before installing akr, at this moment most servers don't support [email protected] key (bitbucket, EC2, etc...) so it is almost useless at this point.

kevinchow avatar Dec 13 '21 07:12 kevinchow

I ran into this same problem (Error: File IO error: 'No such file or directory (os error 2)'). In my case, I was on a brand new install of WSL, and ~/.ssh/config did not yet exist. When I created the file, akr setup completed just fine.

jzweifel avatar Jan 31 '22 17:01 jzweifel

I ran into this same problem (Error: File IO error: 'No such file or directory (os error 2)'). In my case, I was on a brand new install of WSL, and ~/.ssh/config did not yet exist. When I created the file, akr setup completed just fine.

Glad that worked fine for you.

nikhilty avatar Apr 10 '23 19:04 nikhilty

Hello 👋,

Trying to migrate from kr to akr but getting an error.

Using an M1 mac with an iphone, not sure if this can be the reason to the error.

> akr setup
Error: File IO error: 'No such file or directory (os error 2)'

~If I forget about do the setup manually by adding the needed part in .ssh/config by hand and start akr start, pair works but if I try to generate a key I get:~

Today seems like if I start the daemon and generate a key it is working nice, but setup is still broken.

> akr start
> akr generate --name ssh

you can use akr setup --ssh-config-path <ssh_config_file_path> to configure the ssh config and it will start the daemon as well. Let me know if you face any issues.

nikhilty avatar Apr 10 '23 19:04 nikhilty