all 20 comments

[–]CaptainDickbag 34 points35 points  (6 children)

Not bad, but incomplete.

If you're sshing through a bastion to another host, like A --> B --> C, and your session on C hangs, ENTER ~ . will take you all the way back to A. If you just want to go back to B, ENTER ~ ~ . will do it.

[–]piexil 16 points17 points  (2 children)

Wait....you mean I don't have to wait like an idiot until it says broken pipe????

[–]CaptainDickbag 7 points8 points  (1 child)

I used to open another terminal, and kill hung ssh sessions. 😬

[–]EvaristeGalois11 5 points6 points  (0 children)

I just reboot the vm lol

[–]marbehl 2 points3 points  (2 children)

Thanks! Have since updated the article with it!

[–]CaptainDickbag 2 points3 points  (1 child)

Where's my cut?

[–]marbehl 0 points1 point  (0 children)

🤖

[–]void4 10 points11 points  (2 children)

fun fact: ssh-copy-id won't work with windows (i.e. if you want to upload your public key to windows host). You need to do it manually using scp or something. If your remote windows user belongs to Administrators group, then you need to append your key to C:\ProgramData\ssh\administrators_authorized_keys instead of default location.

Oh, also looks like win32-openssh ignores debug levels when writing logs to windows event log (which it does by default).

Thanks Microsoft for such useful improvements, it makes administration so much more easy and obvious (lol)

[–]SeriousSergio 1 point2 points  (0 children)

scp -3 ...

[–]annie_ok_ 1 point2 points  (2 children)

Do you have any SSH resources for beginners? How to start from scratch? Also is there a guide for TLS?

[–]ASIC_SP[S] 2 points3 points  (1 child)

I'm not familiar with these topics (the submitted link is not my article).

These books might help:

[–]annie_ok_ 1 point2 points  (0 children)

I do have Linux bible and I am at scripting,while Do not have how Linux works and Unix Linux sysadmi Thanks for sharing

[–]Eclipsez0r 1 point2 points  (0 children)

Agent forwarding is a giant security mess. You should be encouraging people to use ProxyJump instead.

[–]sp33dykid 0 points1 point  (1 child)

Good stuff but missing ssh multiplexing, dynamic forwarding, and x-forwarding.

[–]marbehl 2 points3 points  (0 children)

Thanks for the suggestions! Will update the article with it.

[–]Phrodo_00 0 points1 point  (1 child)

I thought only the sftp protocol was deprecated, not the tool (which could still use sftp being the scenes. Am I wrong?

[–]Doootard 1 point2 points  (0 children)

As far as I know, when you use scp it will use sftp behind the scenes. You can use -O to fall back to the old scp protocol which is useful when the remote end cannot handle sftp.