Installing kr

curl https://krypt.co/kr | sh is the easiest way to install kr on any supported machine. You can check out the source or download the script locally with curl https://krypt.co/kr > kr and inspect it. The script does the following:

macOS

Equivalent command:
$ brew install kryptco/tap/kr

debian Linux (Ubuntu, Kali)

Equivalent commands, feel free to copy and paste these one at a time:
$ sudo apt-get install software-properties-common dirmngr apt-transport-https -y
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C4A05888A1C4FA02E1566F859F2A29A569653940
$ sudo add-apt-repository "deb http://kryptco.github.io/deb kryptco main" # non-Kali Linux only
$ sudo printf "deb http://kryptco.github.io/deb kryptco main" >> /etc/apt/sources.list # Kali Linux only
$ sudo apt-get update
$ sudo apt-get install kr -y

rpm Linux (RedHat, CentOS, Fedora)

Equivalent commands, feel free to copy and paste these one at a time:
$ gpg --keyserver=hkp://pgp.mit.edu:80 --recv-keys "C4A05888A1C4FA02E1566F859F2A29A569653940"
$ gpg --export --armor C4A05888A1C4FA02E1566F859F2A29A569653940 > /tmp/kryptco.key
$ sudo rpm --import /tmp/kryptco.key
$ sudo yum-config-manager --add-repo https://kryptco.github.io/yum # non-fedora only
$ sudo yum config-manager --add-repo https://kryptco.github.io/yum # fedora only
$ sudo yum install kr -y

Installing from source

On macOS (automatically installs golang and rust)

$ brew install --HEAD kryptco/tap/kr

On linux

Install Go 1.7+
Install Rust 1.15+ and cargo
$ git clone https://github.com/kryptco/kr src/github.com/kryptco/kr
$ export GOPATH=$PWD && cd src/github.com/kryptco/kr && make install && kr restart

How Kryptonite interfaces with SSH

Kryptonite automatically adds the following to your ~/.ssh/config file:

# Added by Kryptonite
Host *
    PKCS11Provider /usr/local/lib/kr-pkcs11.so
    ProxyCommand /usr/local/bin/krssh %h %p
    IdentityFile ~/.ssh/id_kryptonite
    IdentityFile ~/.ssh/id_ed25519
    IdentityFile ~/.ssh/id_rsa
    IdentityFile ~/.ssh/id_ecdsa
    IdentityFile ~/.ssh/id_dsa

Have a question or problem?

Open a GitHub issue or reach out to support@krypt.co.