-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from the1Riddle/solving-ssh
Solving ssh
- Loading branch information
Showing
4 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |