Comments (4)
For clarification for any further users who make it here: openssh's ssh-keygen
command defaults to outputting public and private keys in the RFC4716 "SSH Public Key File Format" rather than the older RFC1421 PEM format that lit auth
expects.
This can be fixed by passing along the -m PEM
flag which will generate the "correct" key format.
Another thing to note is that even with the fall in popularity in RSA keys in favor of ED25519, RSA currently remains as the only way to use lit auth
from lit.
Yeah, I've noticed this issue like a month ago or so, it is not a bug. Here how it goes:
- Lit only accept PEM body armor.
- OpenSSH at some point changed the default of keygen.
- Due to that, in order to make it work with Lit you need to generate it with
keygen -t rsa -b 4096 -C "[email protected]" -m PEG
(notice the -m PEM).
from lit.
And I can definitely guarantee you it is not abandoned xD
edit: I will be making a change on the Wiki to indicate this nowadays required flag to keygen
from lit.
That worked! Thank you so much!
$ ssh-keygen -t rsa -b 4096 -m PEM -C "lit"
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\Julian/.ssh/id_rsa): ./lit
./lit already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ./lit.
Your public key has been saved in ./lit.pub.
$ lit auth notnite
lit version: 3.8.5
luvi version: v2.12.0
command: auth notnite
load config: C:\Users\Julian\AppData\Roaming\litconfig
username: notnite
name: NotNite
email: [email protected]
privateKey: C:\Users\Julian\.ssh\lit
# omitted because i'm not sure if this is private or not lol
update config: C:\Users\Julian\AppData\Roaming\litconfig
done: success
$
Thanks for also changing the wiki, I'm sure it'll save some other tired developers trying to make individual keys.
from lit.
Related Issues (20)
- New Lit version HOT 1
- Lit exe sometimes doesn't exit after it finishes HOT 1
- lit.luvit.io: 502 Bad Gateway errors HOT 3
- coro libraries naively assert coroutine resumes, original stack trace is lost. HOT 4
- coro-net/coro-http server leaks connections? HOT 17
- Mistaken Luvi and Lit versions in `get-lit.sh` on 3.8.5 branch? HOT 6
- Running lit commands in docker build segfault at exit. HOT 3
- Support managing development dependencies (?)
- When attempting to make packages from a GitHub repository, lit assumes the deprecated "master" branch HOT 1
- "No such hash" lit install reports HOT 7
- coro-channel: resuming before having a chance to yield HOT 2
- An option for an HTTPS proxy
- lit publish `tag.type must be string` HOT 5
- Lit package archives are non-determininistic
- "unprotected error in call to Lua API" with custom binary HOT 5
- "unprotected error in call to Lua API" with custom binary HOT 1
- building lit with luajit-removed luvi causes build to fail HOT 5
- Mis-tagged release HOT 1
- Author name case sensitivity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lit.