Skip to content

Commit

Permalink
Merge pull request #1 from the1Riddle/solving-ssh
Browse files Browse the repository at this point in the history
Solving ssh
  • Loading branch information
the1Riddle authored Dec 3, 2023
2 parents 4861ddd + 321c594 commit 84869bb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
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.

0 comments on commit 84869bb

Please sign in to comment.