Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solving ssh #1

Merged
merged 3 commits into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 0x0B-ssh/0-use_a_private_key
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# This script uses ssh to connect to a server using private key

ssh -i ~/.ssh/school [email protected]
3 changes: 3 additions & 0 deletions 0x0B-ssh/1-create_ssh_key_pair
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
# a script that creates an SSH key pair
ssh-keygen -b 4096 -f school -N betty
11 changes: 11 additions & 0 deletions 0x0B-ssh/100-puppet_ssh_config.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# client configuration file
$file_content = file('/etc/ssh/ssh_config')
$config = "${file_content}\
IdentityFile ~/.ssh/school
PasswordAuthentication no
"
file { 'school':
ensure => 'present',
path => '/etc/ssh/ssh_config',
content => $config
}
3 changes: 3 additions & 0 deletions 0x0B-ssh/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 0x0B. SSH

- SSH, which stands for Secure Shell, is a network protocol that provides a secure way to access and manage remote devices or servers over an unsecured network. It is commonly used for securely connecting to and managing servers, routers, and other networked devices.