From 9c294be58d40b3b29f0b6e2ef613ccdbb9e58e86 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Thu, 22 Jun 2023 15:59:06 -0400 Subject: [PATCH] add ssh key --- build/Makefile | 3 +- build/upsilon_key | 38 +++++++++++++++++++ .../rootfs_overlay/root/.ssh/authorized_keys | 1 + doc/docker.md | 3 ++ gateware/Makefile | 2 +- 5 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 build/upsilon_key create mode 100644 buildroot/board/litex_vexriscv/rootfs_overlay/root/.ssh/authorized_keys diff --git a/build/Makefile b/build/Makefile index 24626c0..9dcc5d8 100644 --- a/build/Makefile +++ b/build/Makefile @@ -37,8 +37,7 @@ hardware-shell: hardware-get: docker cp upsilon-hardware:/home/user/upsilon/gateware/build/digilent_arty/gateware/digilent_arty.bit ../boot/ docker cp upsilon-hardware:/home/user/upsilon/gateware/arty.dtb ../boot/ - docker cp upsilon-hardware:/home/user/upsilon/gateware/csr.json ../boot/ - docker cp upsilon-hardware:/home/user/upsilon/gateware/csr_bitwidth.json ../boot/ + docker cp upsilon-hardware:/home/user/upsilon/gateware/mmio.py ../boot/ hardware-clean: -docker container stop upsilon-hardware -docker container rm upsilon-hardware diff --git a/build/upsilon_key b/build/upsilon_key new file mode 100644 index 0000000..46131a5 --- /dev/null +++ b/build/upsilon_key @@ -0,0 +1,38 @@ +-----BEGIN OPENSSH PRIVATE KEY----- +b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn +NhAAAAAwEAAQAAAYEAuJn4kGR7ma+gOH5pjrw8dKnFxRs4TyDk/ZW6ZWG88BYNyWSzSA90 +lLBjEeBUe2vHUfHttjZcYZLaMBynwOwoCjhNtSoo+oYT9D/jZ4TW4j/nMDr/gy3SdAVrko +tBVyDdMqDFRbQVQKcIOt8Yu/pwTvP2VIMTRUESmg5Y2nmeMuxJiXyH7pED2v/+wMQnyHJi +BUXjn6Zoxe6UVTMxO6N1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MnlyCbiaS3LOm/vuc95I80+u0M+X3ExkoR+NOpSXXiNjRV113 +ljAfje3gTGTx0AAAAUcG1jZ29yb25AbWNnb3Jvbi05OTABAgMEBQYH +-----END OPENSSH PRIVATE KEY----- diff --git a/buildroot/board/litex_vexriscv/rootfs_overlay/root/.ssh/authorized_keys b/buildroot/board/litex_vexriscv/rootfs_overlay/root/.ssh/authorized_keys new file mode 100644 index 0000000..679c0b3 --- /dev/null +++ b/buildroot/board/litex_vexriscv/rootfs_overlay/root/.ssh/authorized_keys @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC4mfiQZHuZr6A4fmmOvDx0qcXFGzhPIOT9lbplYbzwFg3JZLNID3SUsGMR4FR7a8dR8e22NlxhktowHKfA7CgKOE21Kij6hhP0P+NnhNbiP+cwOv+DLdJ0BWuSi0FXIN0yoMVFtBVApwg63xi7+nBO8/ZUgxNFQRKaDljaeZ4y7EmJfIfukQPa//7AxCfIcmIFReOfpmjF7pRVMzE7o3Wd3XdFegsn5oaWSBXUnaENKzyizLlCiwQfsBoOpufxGm+9xpIxRdHyPPEro5lNylTJy6GyCyvUMwIqBBAsf94doyyWoIGapxieXgjsVC2MVlA+5yZOVUmmkPg8nFIjrJwwdNMqMMm2MRWks02Wb/4zBor9RFPvw6n20kaoXC8NTOYKOlx65u37OGBAbcNDRPKDTUgx2DOQgtTiZtA+g1Qm/X/c2/jTjt0mvKltYUU3oZdW9mOGtl/wi6jZADVDJ16sznmc0k1BxUdNAKnxIjt3q3yX4eyYFas3m3pcYEd+rkc= upsilon@root diff --git a/doc/docker.md b/doc/docker.md index 8f03444..b2fad68 100644 --- a/doc/docker.md +++ b/doc/docker.md @@ -94,9 +94,12 @@ Add the following to your SSH config: HostName 192.168.1.50 StrictHostKeyChecking no UserKnownHostsFile /dev/null + IdentityFile upsilon_key User root LogLevel QUIET +Then copy the file `build/upsilon_key` to `$HOME/.ssh`. + When the FPGA is connected you can access it with `ssh upsilon` (password `upsilon`). diff --git a/gateware/Makefile b/gateware/Makefile index 266bac2..faedd63 100644 --- a/gateware/Makefile +++ b/gateware/Makefile @@ -15,7 +15,7 @@ rtl_codegen: csr.json build/digilent_arty/digilent_arty.bit: soc.py TFTP_SERVER_PORT=6969 python3 soc.py clean: - rm -rf build csr.json overlay.config overlay.dts pin_io.h arty.dts arty.dtb + rm -rf build csr.json arty.dts arty.dtb mmio.py cd rtl && make clean test: cd rtl && make test