Commit 8f8aa7ac authored by abkrim's avatar abkrim 😀
Browse files

Remove

parent 045a0533
......@@ -6,4 +6,6 @@ mysql-remote.code-workspace
npm-debug.log
yarn-error.log
.vscode/
.idea/
......@@ -2,10 +2,9 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="7b26bbfd-4857-4b8f-bfe4-3aebf8790457" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/composerJson.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/dictionaries/abkrim.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/docs/.vuepress/config.js" beforeDir="false" afterPath="$PROJECT_DIR$/docs/.vuepress/config.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/docs/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/docs/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/docs/manual/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/docs/manual/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/yarn.lock" beforeDir="false" afterPath="$PROJECT_DIR$/yarn.lock" afterDir="false" />
......@@ -62,7 +61,8 @@
<workItem from="1585937838666" duration="1958000" />
<workItem from="1585941565524" duration="1324000" />
<workItem from="1586084143295" duration="18000" />
<workItem from="1586084175637" duration="4484000" />
<workItem from="1586084175637" duration="15113000" />
<workItem from="1586714412281" duration="676000" />
</task>
<servers />
</component>
......@@ -86,5 +86,9 @@
<screen x="1920" y="0" width="1920" height="1080" />
</state>
<state x="2506" y="366" key="com.intellij.ide.util.TipDialog/0.27.1920.1053/1920.0.1920.1080@1920.0.1920.1080" timestamp="1586084191563" />
<state x="2403" y="140" width="944" height="798" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1586164952119">
<screen x="1920" y="0" width="1920" height="1080" />
</state>
<state x="2403" y="140" width="944" height="798" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser/0.27.1920.1053/1920.0.1920.1080@1920.0.1920.1080" timestamp="1586164952119" />
</component>
</project>
\ No newline at end of file
......@@ -10,9 +10,12 @@ module.exports = {
title: 'Putty SSH',
description: 'Manual para conexión SSH con Putty',
base: '/putty-ssh/',
theme: 'default-prefers-color-scheme',
theme: 'yuu',
themeConfig : {
defaultTheme: 'dark',
yuu: {
defaultDarkTheme: true,
disableThemeIgnore: true,
},
repo: 'https://gitlab.castris.com/root/putty-ssh.git',
repoLabel: 'Contribuye',
nav: [
......@@ -23,6 +26,23 @@ module.exports = {
text: 'Putty',
link: '/manual/#putty'
},
{
text: 'Instalación',
link: '/manual/#instalacion'
},
{
text: 'Llaves',
link: '/manual/#llaves'
},
{
text: 'Configuración de una conexión remota',
link: '/manual/#configuracion-de-una-conexion-remota'
},
{
text: 'Conexión',
link: '/manual/#conexion'
},
{
text: 'Otros recursos',
link: '/manual/#otros-recursos'
......@@ -33,15 +53,10 @@ module.exports = {
],
sidebar: 'auto'
},
postcss: {
plugins: [
require('css-prefers-color-scheme/postcss'),
require('autoprefixer')
]
},
plugins: [
'@vuepress/medium-zoom',
'@vuepress/active-header-links',
'@vuepress/last-updated',
'social-share',
{
networks: ['twitter', 'facebook', 'telegram', 'whatsapp', 'email'],
......
......@@ -6,8 +6,8 @@ actionLink: /manual/
features:
- title: Llaves OpenSSH con Putty
details: Imprescindible para una seguridad mayor y eficacia en las conexiones.
- title: OpenSSH
details: Los servidores *Nix usan OpenSSH en lugar de un sistema propietario. Es necesaria la conversión
- title: Estado
details: Última actualización el 2020/04/06 12:49
- title: Soporte
details: En desarrollo sin terminar. Si tienes dudas, por favor antes de hacer nada, pon un [ticket de soporte](https://intranet.castris.com).
footer: MIT License | Copyright © 2020-present [Castris](https://castris.com)
......
......@@ -47,13 +47,59 @@ PermitRootLogin prohibit-password
Con esta información deberemos copiar el contenido de nuestra **llave pública** en ese fichero. <br />
Si no disponemos de acceso inicial ya que no somos root o por cualquier otra circunstancia, deberemos facilitar la llave pública al administrador del sistema.
#### Ejemplo
#### Ejemplo para autorizar la llave en shell
Valido si copiamos y pegamos la llave
```shell script
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzsMe4RJWv0hQZSklajdjkwjwj...........+ykkKwVh1M4ZJ8nm+MUsJ9OFh9r6kZ5NgrLvnbMZRCBviBTOf5DuZTiKWm6wg/h4hHO1rmnDQ== miuser@misistema' >> ~/.ssh/authorized_keys
```
Valido si lo que usamos es el fichero de la llave público creado con PuTTYGen cuyo formato no es valido para añadir al fichero de autorizaciones
```shell script
abkrim@hq:~$ echo '---- BEGIN SSH2 PUBLIC KEY ----
> Comment: "rsa-key-20200403"
> AAAAB3NzaC1yc2EAAAABJQAAAQEAnwC56GlG/4lRkknIKVL9EWoD0jI6nyB2VBXa
> smu9+znUYIlDpcD2MvlnYMQAqswqLwajgxSQIgmDbt0v2jEQXq7WupLf2LwlM9nl
> 4Q0DUTH9sxtK8D69d/Ewb5X+iWSNtUnPSoOdI83L3fkzDEIVSbN8Mas5N3YLiV3n
> +lMSh8TPfbl0hKqVoU/Kn9oivYRDDbV7ZKY2rVohdwdrktbGMGIz3nz+STYodz/8
> ajvf9Qebx0L0M5Kq9YnGfdBnzwFARNoaZQmBIPJ9qDDWOcbuV0keXCNe5BbhLgxZ
> holEdx8inoNrpQA775MmxgBKaB8xayl59XiVaMp1Vvv2A+R27Q==
> ---- END SSH2 PUBLIC KEY ----' >> mi_key.pub
abkrim@hq:~$ ssh-keygen -i -f mi_key.pub > openssh_my_key.pub
abkrim@hq:~$ cat openssh_my_key.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAnwC56GlG/4lRkknIKVL9EWoD0jI6nyB2VBXasmu9+znUYIlDpcD2MvlnYMQAqswqLwajgxSQIgmDbt0v2jEQXq7WupLf2LwlM9nl4Q0DUTH9sxtK8D69d/Ewb5X+iWSNtUnPSoOdI83L3fkzDEIVSbN8Mas5N3YLiV3n+lMSh8TPfbl0hKqVoU/Kn9oivYRDDbV7ZKY2rVohdwdrktbGMGIz3nz+STYodz/8ajvf9Qebx0L0M5Kq9YnGfdBnzwFARNoaZQmBIPJ9qDDWOcbuV0keXCNe5BbhLgxZholEdx8inoNrpQA775MmxgBKaB8xayl59XiVaMp1Vvv2A+R27Q==
abkrim@hq:~$ cat openssh_my_key.pub >> .ssh/authorized_keys
```
> Para cPanel recomiendo el uso de la herramienta de cPanel que nos permite importar la clave publica y autorizarla (mejor si usamos la clave publica que nos aparece en el generador que convertir usando la que hemos guardado).
### Configuración de una conexión remota
En un PuTTy por defecto sólo deberemos configurar lo siguiente, (como norma general ya que puede ser que debemos consultar con el administrador del sistema)
#### Session
![Session](../../assets/img/putty-config-session.jpg)
- Host Name (or Ip address)
- Port -> Es obligatorio si el puerto no es el puerto por defecto "22"
- Connection type: -> SSH
#### Connection > Data
![Connection](../../assets/img/putty-config-connection_data.jpg)
- Auto-login username -> Nombre del usuario con el que queremos acceder y en el que autorizamos nuestra llave
#### Connection > SSH > Auth
![Auth](../../assets/img/putty-config-auth.jpg)
- Private key file for authentication -> Importante elegir la llave private correcta, es decir la correspondiente a la llave publica que hemos autorizado
### Conexión
Antes de intentar conectarnos es importante salvar nuestra conexión para evitar tener que repetir el proceso. (Opción en la categoría Session)
- Hacemos click en el botón open
- Y feliz trabajo en nuestra sesión de terminal
![Sesión](../../assets/img/putty-access.jpg)
## Otros recursos
- [Uso de llaves personales de SSH en cPanel](https://castris.com/manuales/cpanel/uso-llaves-personales-ssh-cpanel/)
- [Creación de llaves SSH - Acceso a SSH](https://castris.com/manuales/cpanel/creacion-llaves-ssh/)
......
......@@ -1507,7 +1507,7 @@ autocomplete.js@0.36.0:
dependencies:
immediate "^3.2.3"
autoprefixer@^9.5.1, autoprefixer@latest:
autoprefixer@^9.5.1:
version "9.7.5"
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.7.5.tgz#8df10b9ff9b5814a8d411a5cfbab9c793c392376"
integrity sha512-URo6Zvt7VYifomeAfJlMFnYDhow1rk2bufwkbamPEAtQFcL11moLk4PnR7n9vlu7M+BkXAZkHFA0mIcY7tjQFg==
......@@ -2412,20 +2412,6 @@ css-parse@~2.0.0:
dependencies:
css "^2.0.0"
css-prefers-color-scheme@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz#6f830a2714199d4f0d0d0bb8a27916ed65cff1f4"
integrity sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg==
dependencies:
postcss "^7.0.5"
css-prefers-color-scheme@latest:
version "4.0.0"
resolved "https://registry.yarnpkg.com/css-prefers-color-scheme/-/css-prefers-color-scheme-4.0.0.tgz#76ad893393c8cde3014b7f897f3417c59a9be5b3"
integrity sha512-uOfDoQlUt3ExPwb3UCKWgp8eGwQisQi/EEqaGBZG8l0xOBgICyvyYpZ8WyW4L099sMxVFum0PqfUqZE+RUVgYw==
dependencies:
postcss "^7.0.16"
css-select-base-adapter@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz#3b2ff4972cc362ab88561507a95408a1432135d7"
......@@ -5828,7 +5814,7 @@ postcss-value-parser@^4.0.2, postcss-value-parser@^4.0.3:
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.0.3.tgz#651ff4593aa9eda8d5d0d66593a2417aeaeb325d"
integrity sha512-N7h4pG+Nnu5BEIzyeaaIYWs0LI5XC40OrRh5L60z0QjFsqGWcHcbkBvpe1WYpcIS9yQ8sOi/vIPt1ejQCrMVrg==
postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.5, postcss@^7.0.6:
postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.5, postcss@^7.0.6:
version "7.0.27"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.27.tgz#cc67cdc6b0daa375105b7c424a85567345fc54d9"
integrity sha512-WuQETPMcW9Uf1/22HWUWP9lgsIC+KEHg2kozMflKjbeUtw9ujvFX6QmIfozaErDkmLWS9WEnEdEe6Uo9/BNTdQ==
......@@ -7411,6 +7397,11 @@ vm-browserify@^1.0.1:
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==
vue-click-outside@^1.0.7:
version "1.0.7"
resolved "https://registry.yarnpkg.com/vue-click-outside/-/vue-click-outside-1.0.7.tgz#cdd2b1605e3c4944784e1794eae4a12a0f700bd6"
integrity sha1-zdKxYF48SUR4TheU6uShKg9wC9Y=
vue-hot-reload-api@^2.3.0:
version "2.3.4"
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"
......@@ -7511,12 +7502,12 @@ vuepress-plugin-social-share@^0.2.1:
dependencies:
deepmerge "^4.2.2"
vuepress-theme-default-prefers-color-scheme@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/vuepress-theme-default-prefers-color-scheme/-/vuepress-theme-default-prefers-color-scheme-1.0.6.tgz#247fd44bf13b62b689b1a9d88398abe57614b55e"
integrity sha512-IOBi7EYlpGoN44drzp43s0mIcrbIw/CVoY2H4bykRvFbWx35tsYIq2lEknIQuqfJnTXbHg065QAPNQ1ljlzY4A==
vuepress-theme-yuu@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/vuepress-theme-yuu/-/vuepress-theme-yuu-2.2.1.tgz#b5d34e0df5f7fd5cd02ed550217fa050c84bb348"
integrity sha512-3E6mGo0HEmTROnLXF2Tjju+dROyfPn1D8sW+LTLGpGNfo0dxAqT/SfWUUhEm+W4T2iZmSCNoZxosUxGFD4mc0Q==
dependencies:
css-prefers-color-scheme "^3.1.1"
vue-click-outside "^1.0.7"
vuepress@^1.4.1:
version "1.4.0"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment