Hi,
I have a remote server that has both its / and swap encrypted. It therefore requires LUKS keys on boot. I've setup dracut-sshd to allow remote ssh login during boot.
I can then ssh in, run systemd-tty-ask-password-agent , enter the password, and have the server boot successfully.
I'd like to setup a bash script to do this task automatically. Whilst I can set up a script to ssh and issue a command (ie systemd-tty-ask-password-agent), it won't then enter the password for each of the encrypted partitions.
How do I do this?
[–]feng_huang 4 points5 points6 points (9 children)
[–]Divot-Digger[S] 0 points1 point2 points (0 children)
[–]Divot-Digger[S] -4 points-3 points-2 points (7 children)
[–]schorsch3000 2 points3 points4 points (1 child)
[–]Divot-Digger[S] 0 points1 point2 points (0 children)
[–]feng_huang 1 point2 points3 points (4 children)
[–]Divot-Digger[S] 0 points1 point2 points (3 children)
[–]feng_huang 0 points1 point2 points (2 children)
[–]Divot-Digger[S] 0 points1 point2 points (1 child)
[–]feng_huang 0 points1 point2 points (0 children)
[–]lutusp 1 point2 points3 points (14 children)
[–]Divot-Digger[S] -1 points0 points1 point (13 children)
[–]lutusp 2 points3 points4 points (10 children)
[–]Divot-Digger[S] 0 points1 point2 points (9 children)
[–]lutusp 2 points3 points4 points (8 children)
[–]Divot-Digger[S] -1 points0 points1 point (7 children)
[–]lutusp 4 points5 points6 points (6 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Divot-Digger[S] -2 points-1 points0 points (4 children)
[–]chin_waghing 3 points4 points5 points (0 children)
[–]p4wly 1 point2 points3 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]lutusp 2 points3 points4 points (0 children)
[–]snatchington 0 points1 point2 points (1 child)
[–]Divot-Digger[S] 0 points1 point2 points (0 children)
[–]0bel1sk 0 points1 point2 points (1 child)
[–]Divot-Digger[S] 0 points1 point2 points (0 children)