Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rendu Outils libres
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RIEHM Clement
Rendu Outils libres
Commits
cf1fbec8
Commit
cf1fbec8
authored
3 years ago
by
RIEHM Clement
Browse files
Options
Downloads
Patches
Plain Diff
Ajout partie ssh
parent
8e6723a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rendu.pdf
+0
-0
0 additions, 0 deletions
rendu.pdf
rendu.tex
+48
-1
48 additions, 1 deletion
rendu.tex
with
48 additions
and
1 deletion
rendu.pdf
+
0
−
0
View file @
cf1fbec8
No preview for this file type
This diff is collapsed.
Click to expand it.
rendu.tex
+
48
−
1
View file @
cf1fbec8
...
...
@@ -113,7 +113,7 @@ Ajouter \verb|$(vagrant_prompt_info)| au PROMPT dans le themes
\subsection*
{
\#
10
}
\section
{
SSH
}
\subsection*
{
#1
}
\subsection*
{
\
#
1
}
\begin{lstlisting}
ssh alice@192.168.56.2
...
...
@@ -121,6 +121,53 @@ ssh alice@192.168.56.2
L'history des utilisateurs sont vides.
\subsection*
{
\#
2
}
\begin{lstlisting}
[language=bash]
bob@srv:~
$
ssh
-
copy
-
id alice@
192
.
168
.
56
.
3
/
usr
/
bin
/
ssh
-
copy
-
id: INFO: Source of key
(
s
)
to be installed: "
/
home
/
bob
/
.ssh
/
id
_
rsa.pub"
alice@
192
.
168
.
56
.
3
's password:
Number of key
(
s
)
added:
1
\end
{
lstlisting
}
Après la copie de la clef bob peut se conecter sans le mot de passe de alice.
\begin
{
lstlisting
}
[
language
=
bash
]
ssh
-
agent
ssh
-
add
Ces commandes permettent de ne pas taper le mot de passe a chaque connections.
\end
{
lstlisting
}
\subsection
*
{
\#
3
}
\begin
{
lstlisting
}
[
language
=
bash
]
alice@cli:~
$
ssh-keyscan 192.168.56.3 > .ssh/known
_
hosts
# 192.168.56.3:22 SSH-2.0-OpenSSH
_
7.4p1 Debian-10+deb9u7
# 192.168.56.3:22 SSH-2.0-OpenSSH
_
7.4p1 Debian-10+deb9u7
# 192.168.56.3:22 SSH-2.0-OpenSSH
_
7.4p1 Debian-10+deb9u7
alice@cli:~
$
ssh bob@
192
.
168
.
56
.
3
bob@
192
.
168
.
56
.
3
's password:
\end
{
lstlisting
}
\subsection
*
{
\#
4
}
\begin
{
lstlisting
}
[
language
=
bash
]
ArchNilux
% sftp alice@192.168.56.2
alice@
192
.
168
.
56
.
2
's password:
Connected to
192
.
168
.
56
.
2
.
sftp> put Vagrantfile
Uploading Vagrantfile to
/
home
/
alice
/
Vagrantfile
Vagrantfile
100
% 1419 875.2KB/s 00:00
sftp> get
/
etc
/
passwd
Fetching
/
etc
/
passwd to passwd
passwd
100
% 1640 534.1KB/s 00:00
sftp>
^
D
sshfs alice@
192
.
168
.
56
.
2
:
/
home tmp
\end
{
lstlisting
}
Le fichier a bien été modifié sur le home d'alice
\subsection
*
{
\#
5
}
\section
{
Git
}
\subsection
*
{
\#
1
}
\begin
{
lstlisting
}
[
language
=
bash
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment