You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Oscar Garcia 923c475ae1
Update Tres
4 months ago
scripts Update Inicial 4 months ago
README.md Update Tres 4 months ago

README.md

PowerShell (Sapian) — SSH tipo Linux + Backup/Restore

Este repositorio contiene los scripts para dejar PowerShell en Windows listo para trabajar como en Ubuntu:

Autosugerencias de comandos (tipo fish)
Búsqueda en historial con Ctrl+R (fzf)
Conexiones SSH rápidas usando tu ssh_config existente
Backup y restore del entorno (incluye llaves si aplica)


Estructura del repo

PowerShell/ │ README.md └─ scripts/ │ 01-New-SshConfigLink.ps1 │ 02-Backup-PwshSshSetup.ps1 │ 03-Restore-PwshSshSetup.ps1


IMPORTANTE: ubicación real del ssh_config

El archivo con los servidores NO está dentro de este repo.

Se mantiene en esta ruta (NO se mueve):

C:\Users\ofgar\Workspace\revelation\ssh_config


¿Qué hace cada script?

Crea el enlace para que Windows use tu ssh_config actual:

C:\Users\ofgar.ssh\config --> C:\Users\ofgar\Workspace\revelation\ssh_config

Opcional: también puede reparar permisos de id_rsa si da error de permisos.


02-Backup-PwshSshSetup.ps1

Genera un backup del entorno:

  • Perfil de PowerShell
  • Historial de comandos (PSReadLine)
  • Copia del ssh_config (desde su ruta actual)
  • Opcional: llaves SSH (id_rsa, id_rsa.pub, known_hosts)

03-Restore-PwshSshSetup.ps1

Restaura todo en un equipo nuevo:

  • Instala módulos necesarios
  • Restaura perfil PowerShell
  • Restaura historial (opcional)
  • Restaura llaves + repara permisos (opcional)
  • Vuelve a crear el enlace de ~\.ssh\config

Instalación base (una sola vez)

Abrir PowerShell y ejecutar:

Install-Module PSReadLine -Scope CurrentUser -Force
winget install fzf
Install-Module PSFzf -Scope CurrentUser -Force