Skip to content

Commit

Permalink
Add ssh pubkeys and fix ssh package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
konkourgr committed Dec 13, 2023
1 parent c37cc6e commit a01877a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ ENV NET_DOMAIN="notset"

ENV ROOT_PASSWORD="notset"

ENTRYPOINT [ "/var/jeos/mkiso.sh" ]
ENTRYPOINT [ "/var/jeos/mkiso.sh" ]
2 changes: 2 additions & 0 deletions gunet/authorized_keys
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6cM+nOljtfvEn0BUYrJ9G5487HuaYGBrLikQfo1ZI5nfptVB1aOpJAQk77CTkS4uYnf705w9x3PO+Cv0N+bT4iVyrc8I6ZCBBdu607FCXi28H8WLVQdO9AptOZsa0DUFjq1Up71y8t2EdrQKlcHgKEUeoiimWL034KXzc/eFkAbqpYcS+iQUyb08KtJLk49nRXWznYlhJ0aGRrGXlKdgm4o9peQQhRct3NEviDVfS8x5eBmHlRnPz7hxCSNe63qx/zLVarR6ASAKLs595s/4IHj2HtaOVYiaK0iZZrPyhZlTgfxHsTw76oglEMj5OeqFNZzIEQ+XcI0uZJ4vi6dqLQ== kkalev
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDk6T7kZgQM0e1EGRIAmQH5DZgykaXW2CCtuU8az5elK7bdgnHMoxpNmrC0vun+Oh9D8RLlwnYG+HGyFF7V+iXqcLyesQtmdofsnkZAvp/hYIavGvcbBuwK0AaPtf3/n4IcStGNAZfZMX7g5V3d/loCLRZwhHdL0ih0PneOPNCLDpXkPVcVVaT1VnTVIcmS5y6ZHl83h0SRiqbAuygGAKLBWrKKpGxjbMVgQ2sbVmUpUpbtsOaeOB1vXg3Qef+Ykqh04YS2DeAdLRaSr6ls3So2ElQKERSLP4jZoJP9Sl8TcM6A1BgDnORQlCjuuZstxmXtBoSeXty/XBjyClrcVEyD konkour@uoa
2 changes: 1 addition & 1 deletion gunet/custom_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ systemctl enable acpid.service

sed -i "/Port 22/aPort 65432" /etc/ssh/sshd_config

#rm -r /var/log/installer;
rm -r /var/log/installer;

exit 0;

2 changes: 1 addition & 1 deletion gunet/internal_custom_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ apt-get -y --purge autoremove

apt-get -y install acpi-support-base openssh-server \
iptables-persistent deborphan anacron net-tools \
wget telnet tcpdump lsof ping cdebconf
wget telnet tcpdump lsof cdebconf

apt-get -y update
apt-get -y upgrade
Expand Down
2 changes: 1 addition & 1 deletion gunet/preseed.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ d-i grub-installer/bootdev string default

d-i finish-install/reboot_in_progress note

d-i preseed/late_command string cp /cdrom/gunet/custom_script.sh /target/root; cp /cdrom/gunet/internal_custom_script.sh /target/root/; cp /cdrom/gunet/sources.list /target/etc/apt/; cp /cdrom/gunet/00norecommends /target/etc/apt/apt.conf.d; cp /cdrom/gunet/install_docker.sh /target/root/; in-target apt-get -y update; cp /cdrom/gunet/disableipv6.conf /target/etc/sysctl.d; cp /cdrom/gunet/locale /target/etc/default;in-target chmod 700 /root/custom_script.sh; in-target chmod 700 /root/internal_custom_script.sh; in-target /root/internal_custom_script.sh; in-target /root/custom_script.sh; in-target chmod 700 /root/install_docker.sh; in-target /root/install_docker.sh; in-target rm /root/custom_script.sh; in-target rm /root/internal_custom_script.sh; in-target rm /root/install_docker.sh;
d-i preseed/late_command string cp /cdrom/gunet/custom_script.sh /target/root; cp /cdrom/gunet/internal_custom_script.sh /target/root/; cp /cdrom/gunet/sources.list /target/etc/apt/; cp /cdrom/gunet/00norecommends /target/etc/apt/apt.conf.d; cp /cdrom/gunet/install_docker.sh /target/root/; in-target apt-get -y update; cp /cdrom/gunet/disableipv6.conf /target/etc/sysctl.d; cp /cdrom/gunet/locale /target/etc/default;in-target chmod 700 /root/custom_script.sh; in-target chmod 700 /root/internal_custom_script.sh; in-target /root/internal_custom_script.sh; in-target mkdir /target/root/.ssh; cp /cdrom/gunet/authorized_keys /target/root/.ssh/; in-target /root/custom_script.sh; in-target chmod 700 /root/install_docker.sh; in-target /root/install_docker.sh; in-target rm /root/custom_script.sh; in-target rm /root/internal_custom_script.sh; in-target rm /root/install_docker.sh;

0 comments on commit a01877a

Please sign in to comment.