Тёмный

Posh-SSH: Install and New SSH Session 

Atomic Hacking
Подписаться 1,2 тыс.
Просмотров 21 тыс.
50% 1

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@oliviera.7255
@oliviera.7255 Год назад
Thanks for those very detailed explanations !
@MK-xx6rl
@MK-xx6rl 5 лет назад
Great work. Thank you for making a video about this module.
@feketejozsef9559
@feketejozsef9559 3 года назад
You are awesome Carlos !!
@fergo23
@fergo23 2 года назад
Thankyou very much, this was helpful
@marcelo05111
@marcelo05111 4 года назад
Thanks for your time. Posh-ssh is amazing. But i have a problem with some remote devices, showed the error: MODO DETALHADO: Using SSH Username and Password authentication for connection. AVISO: Host key is not being verified since Force switch is used. New-SSHSession : Connection failed to establish within 10000 milliseconds. In putty the connection works normally
@atomichacking
@atomichacking 4 года назад
Marcelo Santos weird that error should only happen if there is no connection. Try the beta 1 to see if the updates in identification addresses the issue at the protocol level.
@marcelo05111
@marcelo05111 4 года назад
@@atomichacking Good mornig, thanks for your reply. I tried tried to use de beta version but the error is the same. When the verbose mode is ON, i can see the posh sending the user but there is no response. Putty works normaly.
@marcelo05111
@marcelo05111 4 года назад
another question, does posh works like pscp for download for only one file? I am trying to make fortigate config download, above is the fortigate sintaxe with pscp. pscp admin@:sys_config
@atomichacking
@atomichacking 4 года назад
@@marcelo05111 is it the same type of device? could be an issue with Renci.SSH and those devices. I know SSH v1 is not supported and some embedded devices use that old version of SSH.
@atomichacking
@atomichacking 4 года назад
@@marcelo05111 there is get-scpitem in the module to donwload single files or folders. Github Issues is a better place for questions or problems with the module. Easier to reply there.
@rolandpieper
@rolandpieper 4 месяца назад
Thank you!
@atomichacking
@atomichacking Месяц назад
you are welcomed :)
@vooose
@vooose 5 лет назад
after starting a session via `New-SSHSession` is it possible to have every command thereafter sent to the remote server? i.e. the PowerShell prompt becomes the remote shell effectively. also using `Invoke-SSHCommand -Index 0 -Command "pwd"` is a bit clunky - having to specify the Index and Command seems unnecessary; it should just use the first session automatically if you omit the `Index` param. then you can shorten things to Invoke-SSHCommand
@atomichacking
@atomichacking 5 лет назад
Sadly not. For a shell Windows 10 includes ssh.exe client and it is a better interactive shell than anything I could code
@ketanbhikadiya4679
@ketanbhikadiya4679 4 года назад
@DarkOperator Thanks for creating Posh-ssh library. Is there any way to automatically accept SSH host keys-even when keys are changed-in posh-ssh? I am getting error in my script because the SFTP server host key is changed, and I don't want to use -Force parameter.
@atomichacking
@atomichacking Год назад
You can use the -Force parameter
@marlonocillos
@marlonocillos 3 года назад
Hi how can i isntall the posh ssh in windows 2012 r2 server
@sachabravo2047
@sachabravo2047 4 года назад
Hi, I would like use New-SFTPSession with keyfile as password. I do not want the login dialog box to open. how can i write my command line? Tank for your work.
@cperezotero
@cperezotero 4 года назад
You would need to use a PSCredential object. There are multiple ways to create it since people have different takes on how to protect the cleartext password.
@bobuo7
@bobuo7 Год назад
You can do something like this: New-SSHSession -ComputerName linux-docker -Credential $(New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList 'sshUsername', $( New-Object -TypeName System.Security.SecureString )) -keyfile "C:\Users\bob\Documents\ssh_rsa.key" -Verbose Though, I'm sure you figured this out sometime in the last 3 years...
@cu806
@cu806 4 года назад
HELP! How can we run a ldapsearch and export the results to csv using this module?
@atomichacking
@atomichacking 4 года назад
C U use - -outputFormat csv on the ldapsearch binary on the target ? I have not used the tool so no clue if that option is on al distros
@cu806
@cu806 4 года назад
@@atomichacking not sure I'm following. Can this type of query be run using POSH-SSH: date; ldapsearch -1 -T -h HostName -p 1111 -D "uid=udump,ou=POSH,o=darknight.com" -wdumpu -b > Aliases.txt I just installed POSH yesterday and was curious to know how to run the above command
@atomichacking
@atomichacking 4 года назад
@@cu806 I would try invoke-sshcomand or create a shellstream with new-sshshellstream and then use invoke-sshstreamshellcommand. you will need to manipualate the object you get back to parse the output of the command like you want.
@cu806
@cu806 4 года назад
@@atomichacking thank you sir. Will try
@michaelchaplin926
@michaelchaplin926 5 лет назад
Can you use posh-ssh to connect to a server with username@xx.xxx.xxx.xxx and a password?
@atomichacking
@atomichacking 4 года назад
You need to specify the info as computername and credential object
@dusanrechtig1218
@dusanrechtig1218 3 года назад
Hey Carlos, you did a really great job with this module. Let me ask you for help with a problem I am not able to handle. We're using the SSH connections to linux devices authenticated by ed25519 signed keys eg. "ssh.exe username@serverIP -i {userprofile}/.ssh/id_ed25519". The device has a public key of CA signing those ed25519 keys to evaluate the validity of the connected client. Is there a way to use your module for this type of auth? I have tried use the New-SSHSession, but no luck yet.
@atomichacking
@atomichacking Год назад
Sadly not, the SSH.Net project is not the most flexible when it comes to ciphers as OpenSSH is
Далее
PowerShell Remoting
37:12
Просмотров 72 тыс.
Posh-SSH Creating and Managing Sessions
9:53
PUBG MOBILE | Metro Royale: Fun Moments #4
00:16
Просмотров 144 тыс.
you need to learn tmux RIGHT NOW!!
17:46
Просмотров 546 тыс.
Getting started with Ansible 02 - SSH Overview & Setup
28:51
Learn to securely use Passwords with PowerShell
18:13
WSL 2: Getting started
20:34
Просмотров 714 тыс.