Support fo Ubuntu2404 #26
|
@ -31,3 +31,13 @@ remote_file '/home/kazu634/.ssh/config' do
|
||||||
mode '644'
|
mode '644'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Disable Password authentication
|
||||||
|
file '/etc/ssh/sshd_config.d/50-cloud-init.conf' do
|
||||||
|
action :delete
|
||||||
|
end
|
||||||
|
|
||||||
|
execute 'systemctl restart ssh.service ' do
|
||||||
|
action :nothing
|
||||||
|
subscribes :run, 'file[/etc/ssh/sshd_config.d/50-cloud-init.conf]'
|
||||||
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue