Skip to content
Snippets Groups Projects
Commit 1bfb04ac authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

ssh-key selinux

parent 9fc0452f
Branches
Tags
No related merge requests found
......@@ -38,6 +38,15 @@ and replacing `[USERNAME]` and `[U:Account USERNAME]` with your usernames. Using
If you want to use ssh-keys you can also use different keys in `.ssh/config` per server with `IdentityFile ~/.ssh/id_rsa_for_server`.
**Note: If you are having trouble with your ssh-key being accepted. You need to check the selinux security policy. Because we use non standard home directories, which are not accepted by default.** Do that by running:
```bash
ls -ldZ ~/.ssh/
drwx------. 2 monkey users system_u:object_r:ssh_home_t:s0 4.0K Aug 18 21:24 .ssh/
ls -lZ ~/.ssh/
-rw-------. 1 monkey users unconfined_u:object_r:ssh_home_t:s0 1.3K Aug 17 10:58 authorized_keys
```
If you are not seeing `ssh_home_t` than you need to run `restorecon -Rv ~/.ssh/` which should update the security policy and allow for the SSH-Daemon to accept your keys.
**From eduroam**: You should be able to log in as above.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment