Commit 045a0533 authored by abkrim's avatar abkrim 😀
Browse files

Fix styles and add some funcionaltities

parent 12264da4
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ComposerJsonPluginSettings">
<unboundedVersionInspectionSettings>
<excludedPackages />
</unboundedVersionInspectionSettings>
<customRepositories />
<composerUpdateOptions />
</component>
</project>
\ No newline at end of file
<component name="ProjectDictionaryState">
<dictionary name="abkrim">
<words>
<w>autentificación</w>
<w>sshd</w>
</words>
</dictionary>
</component>
\ No newline at end of file
......@@ -2,7 +2,11 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="7b26bbfd-4857-4b8f-bfe4-3aebf8790457" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/docs/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/docs/README.md" afterDir="false" />
<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/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" />
</list>
......@@ -19,6 +23,9 @@
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="PackageJsonUpdateNotifier">
<dismissed value="$PROJECT_DIR$/package.json" />
</component>
<component name="ProjectId" id="1a2dtYuYfIMBwX6Rm3hiDOa6PaQ" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
......@@ -26,11 +33,22 @@
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$USER_HOME$/diccionarios/spanish.dic" />
<property name="node.js.detected.package.eslint" value="true" />
<property name="node.js.detected.package.tslint" value="true" />
<property name="node.js.path.for.package.eslint" value="project" />
<property name="node.js.path.for.package.tslint" value="project" />
<property name="node.js.selected.package.eslint" value="(autodetect)" />
<property name="node.js.selected.package.tslint" value="(autodetect)" />
<property name="nodejs_package_manager_path" value="yarn" />
<property name="prettierjs.PrettierConfiguration.Package" value="$PROJECT_DIR$/node_modules/prettier" />
<property name="settings.editor.selected.configurable" value="reference.settings.ide.settings.spelling" />
</component>
<component name="SpellCheckerSettings" BundledDictionaries="0" RuntimeDictionaries="0" Folders="1" Folder0="$USER_HOME$/diccionarios" CustomDictionaries="1" CustomDictionary0="$USER_HOME$/diccionarios/spanish.dic" Dictionaries="0" CorrectionsLimit="5" DefaultDictionary="project-level" UseSingleDictionary="true" />
<component name="SvnConfiguration">
<configuration />
</component>
......@@ -41,11 +59,32 @@
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1585937837164</updated>
<workItem from="1585937838666" duration="156000" />
<workItem from="1585937838666" duration="1958000" />
<workItem from="1585941565524" duration="1324000" />
<workItem from="1586084143295" duration="18000" />
<workItem from="1586084175637" duration="4484000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="WindowStateProjectService">
<state x="2563" y="267" width="624" height="544" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog" timestamp="1586084158429">
<screen x="1920" y="0" width="1920" height="1080" />
</state>
<state x="2563" y="267" width="624" height="544" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.27.1920.1053/1920.0.1920.1080@1920.0.1920.1080" timestamp="1586084158429" />
<state x="2659" y="297" key="FileChooserDialogImpl" timestamp="1585938350218">
<screen x="1920" y="0" width="1920" height="1080" />
</state>
<state x="2659" y="297" key="FileChooserDialogImpl/0.27.1920.1053/1920.0.1920.1080@1920.0.1920.1080" timestamp="1585938350218" />
<state x="2354" y="174" key="SettingsEditor" timestamp="1585938352129">
<screen x="1920" y="0" width="1920" height="1080" />
</state>
<state x="2354" y="174" key="SettingsEditor/0.27.1920.1053/1920.0.1920.1080@1920.0.1920.1080" timestamp="1585938352129" />
<state x="2506" y="366" key="com.intellij.ide.util.TipDialog" timestamp="1586084191563">
<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" />
</component>
</project>
\ No newline at end of file
......@@ -10,19 +10,34 @@ module.exports = {
title: 'Putty SSH',
description: 'Manual para conexión SSH con Putty',
base: '/putty-ssh/',
theme: 'default-prefers-color-scheme',
themeConfig : {
nav: [
{ text: 'Inicio', link: '/' },
{ text: 'Manual',
items: [
{
text: 'Putty',
link: '/manual/#putty'
}
]
},
],
sidebar: 'auto'
defaultTheme: 'dark',
repo: 'https://gitlab.castris.com/root/putty-ssh.git',
repoLabel: 'Contribuye',
nav: [
{ text: 'Inicio', link: '/' },
{ text: 'Manual',
items: [
{
text: 'Putty',
link: '/manual/#putty'
},
{
text: 'Otros recursos',
link: '/manual/#otros-recursos'
}
]
},
{ text: 'Otros manuales', link: 'https://manuales.castris.com/'}
],
sidebar: 'auto'
},
postcss: {
plugins: [
require('css-prefers-color-scheme/postcss'),
require('autoprefixer')
]
},
plugins: [
'@vuepress/medium-zoom',
......@@ -42,4 +57,4 @@ module.exports = {
// { /* options */ }
// ]
]
}
\ No newline at end of file
}
......@@ -28,3 +28,33 @@ PuTTy instala de forma un programa adicional llamado [PuTTYGen](https://www.putt
Para mi es habitual y seguro el uso de una llave de 2048 bits, que guardo cuidadosamente en un directorio de mis dispositivos que esta oculto y con permisos de sólo lectura para el propietario. Como ademas uso esa llave para muchas operaciones basadas en scripts
#### Instalar las llaves en el servidor
Las llaves deben ser instalada en el servidor al que queremos acceder via SSH, con las siguientes condiciones:
- El servidor SSH debe aceptar como método de autentificación el uso de llaves que como norma general esta permitido.
- El path habitual en las distribuciones mas comunes para la ubicación de las llaves es `/user_path/.ssh/`
- El nombre del fichero es authorized_keys
```shell script
# /etc/ssh/sshd_config
AuthorizedKeysFile .ssh/authorized_keys
```
- El usuario **root** puede tener configurado el acceso si el administrador lo permite. Puede acceder con llave pero no con password aunque el servidor permita el uso de contraseña
```shell script
# /etc/ssh/sshd_config
PermitRootLogin prohibit-password
```
> Existen muchas posibilidades de configuración con el método de autentificación basado en llaves, como por ejemplo limitar el uso de ssh a determinado comandos
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
```shell script
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzsMe4RJWv0hQZSklajdjkwjwj...........+ykkKwVh1M4ZJ8nm+MUsJ9OFh9r6kZ5NgrLvnbMZRCBviBTOf5DuZTiKWm6wg/h4hHO1rmnDQ== miuser@misistema' >> ~/.ssh/authorized_keys
```
### Configuración de una conexión remota
## 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/)
- [SSHD Config](https://www.ssh.com/ssh/sshd_config/)
......@@ -14,5 +14,10 @@
"scripts": {
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
"dependencies": {
"vuepress-theme-default-prefers-color-scheme": "^1.0.6",
"css-prefers-color-scheme": "latest",
"autoprefixer": "latest"
}
}
\ No newline at end of file
}
......@@ -1507,7 +1507,7 @@ autocomplete.js@0.36.0:
dependencies:
immediate "^3.2.3"
autoprefixer@^9.5.1:
autoprefixer@^9.5.1, autoprefixer@latest:
version "9.7.5"
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.7.5.tgz#8df10b9ff9b5814a8d411a5cfbab9c793c392376"
integrity sha512-URo6Zvt7VYifomeAfJlMFnYDhow1rk2bufwkbamPEAtQFcL11moLk4PnR7n9vlu7M+BkXAZkHFA0mIcY7tjQFg==
......@@ -2412,6 +2412,20 @@ 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"
......@@ -5814,7 +5828,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.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.16, 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==
......@@ -7497,6 +7511,13 @@ 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==
dependencies:
css-prefers-color-scheme "^3.1.1"
vuepress@^1.4.1:
version "1.4.0"
resolved "https://registry.yarnpkg.com/vuepress/-/vuepress-1.4.0.tgz#308037b15baec6e251b835fe1fff7da507302b6b"
......
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