diff --git a/0x0B-ssh/0-use_a_private_key b/0x0B-ssh/0-use_a_private_key new file mode 100755 index 0000000..f1eb003 --- /dev/null +++ b/0x0B-ssh/0-use_a_private_key @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# This script uses ssh to connect to a server using private key + +ssh -i ~/.ssh/school ubuntu@3.236.115.124 diff --git a/0x0B-ssh/1-create_ssh_key_pair b/0x0B-ssh/1-create_ssh_key_pair new file mode 100755 index 0000000..eb5eef8 --- /dev/null +++ b/0x0B-ssh/1-create_ssh_key_pair @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +# a script that creates an SSH key pair +ssh-keygen -b 4096 -f school -N betty diff --git a/0x0B-ssh/100-puppet_ssh_config.pp b/0x0B-ssh/100-puppet_ssh_config.pp new file mode 100755 index 0000000..a3c377e --- /dev/null +++ b/0x0B-ssh/100-puppet_ssh_config.pp @@ -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 +} diff --git a/0x0B-ssh/README.md b/0x0B-ssh/README.md new file mode 100644 index 0000000..c597e0b --- /dev/null +++ b/0x0B-ssh/README.md @@ -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.