Code Monkey home page Code Monkey logo

skm's Introduction

Hi there 👋

Welcome to the mysterious secret page...
I'm Timothy, a full-stack engineer.

📫 How to reach me:


visitor badge

skm's People

Contributors

bo0km4n avatar denisoster avatar dvrkps avatar ebastos avatar frozenkp avatar lsjurczak avatar raymondmars avatar rogeriopradoj avatar sascha-andres avatar theykk avatar timothyye avatar xwjdsh avatar zerok avatar zoritle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skm's Issues

Add CLI Test

Hello.
First of all, thanks for making a great tool.
By the way, I want to add cli_test.go.
Perhaps a different name might be better.
This file actually execute main.go and tests its standard output.

If you give permission I would like to write this test.
How about?

cli_test example

package main

import (
    "bytes"
    "fmt"
    "strings"
    "testing"
)

func TestRun_versionFlag(t *testing.T) {
    outStream, errStream := new(bytes.Buffer), new(bytes.Buffer)
    cli := &CLIoutStream: outStream, errStream: errStream
    args := strings.Split("skm -version", " ")

    status := cli.Run(args)
    if status != ExitCodeOK
        t.Errorf("ExitStatus=%d, want %d", status, ExitCodeOK)
    }

    expected := fmt.Sprintf("skm version %s", Version)
    if !strings.Contains(errStream.String(), expected)
        t.Errorf("Output=%q, want %q", errStream.String(), expected)
     }
}

Empty skm directory causing skm init to fail

Hello,

thank you for this SSH key manager. It's really problematic to manage more than one key without it.

I found an issue when I had empty .skm directory.
skm init says SSH key store initialized! and it won't copy the SSH keys to the .skm directory.

I have a working fix and I would like to create a PR if you don't mind.

Restic integration

Hi :)

First of all thank you very much for creating this! Finally an easy way for me to switch between multiple SSH keys without getting a headache 😄

Would it perhaps make sense to use restic for creating and restoring backups as an alternative to the tgz approach? I've been doing that recently with https://github.com/zerok/clocked and it worked extremely well so far 😄

id_rsa can't transfer to pem formate

Private key, which created by skm, can't be transferred to pem format, the error is below:

140138626492304:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:707:Expecting: ANY PRIVATE KEY

My command is openssl rsa -in ./id_rsa -out id_rsa.pem.

SSL certificate is expired.

==> Downloading https://download.xiaozhou.xyz/skm-mac64-0.8.6.tar.gz
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Error: skm: Failed to download resource "skm"
Download failed: https://download.xiaozhou.xyz/skm-mac64-0.8.6.tar.gz

How import existing ssh key?

i have 3 ssh key in ~/.ssh folder and i use skm init is only import default key id_rsa

how import all ssh key or how import existing ssh key?

无法自定义--store-path

skm init时指定非默认--store-path不生效

1.我的环境
image
2.操作过程
2.1 删除/root/.skm
2.2 已确认--store-path不存在
image
3.默认--store-path正常
image
4.已确认使用centos出现同样问题
5.简单看了下main.go,没看出来......
image

是我打开方式不对吗

Allow symlinks from `.ssh` to `.skm`

Very nice tool, thank you!

I have a small suggestion for how I think the file handling around the keys should work
I and I suppose most other people prefer not moving the ssh keys into .skm, but rather to have symbolic links to the ssh keys created in .skm. Right now, I have the original keys in .skm and symlink them to .ssh but prefer to have it the other way around.

I tried to have the original files in .ssh and symlink them to .skm, but this resulted in the files not being readable:

✔ Found 2 SSH key(s)!

Failed to read  /Users/[[redacted]]/.skm/[[redacted]]@[[redacted]].com/id_rsa.pub
	[[redacted]]@[[redacted]].com	[]	[]
Failed to read  /Users/[[redacted]]/.skm/[[redacted]]@[[redacted]].com/id_rsa.pub
	[[redacted]]@[[redacted]].com []	[]

I suppose currently symlinks are not resolved. By following symlinks, this should be possible to do if one would want to, without changing the default behavior of skm.

Destination constraints

When connecting to a ssh server, by default, all available public keys are sent for it to choose one for authentication.
This is a problem because any server you connect to now has a list of all your public keys.
While this is not really a security issue for authentication, it allows servers to identify you if they have, for example, your github ssh key, or check other servers if they accept your public key (see, for example, https://github.com/benjojo/ssh-key-confirmer).

OpenSSH 8.9 implemented detstination constraints, this allows ssh-agent to forwards public keys based on the destination server. The destination constraints can be added via the -h flag to ssh-add.

It would be cool for skm to either support adding destination constraints for keys, or to add keys with destination constraints to .ssh/config

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.