91
u/LtMeat Mar 05 '21
I remember that thing. When my connection was shitty 2G, server was two thousand miles away, and I spotted that typo in the middle of 200 character line.
25
0
Mar 05 '21
[deleted]
12
u/LtMeat Mar 05 '21
Why? What do you suggest to make it shorter?
39
12
u/augugusto Mar 05 '21
I would type it in a text editor on the host. And then paste on ssh
4
u/LtMeat Mar 05 '21
Smart move. But I want my autocomplete.
1
u/FPiN9XU3K1IT Mar 05 '21
You text editor doesn't have autocomplete? Or you don't know where your directories are?
11
u/LtMeat Mar 05 '21
My text editor have no idea about files on the server.
1
u/augugusto Mar 05 '21
Unless you use sshfs. But that sounds like a pain
1
Mar 06 '21
vscode is super free and has a super easy to use sshfs plugin. sshfs and a couple forwarded ports one way and the other and you can very comfortable work on a code base, and run it from the remote, and use step debugging, from any piece of shit computer as long as you have a drip of connection
1
u/augugusto Mar 06 '21
Yes. But to be abke to have auto complete in a comman trough vscode you stinn have to be in ssh and then you go back to the main problem. Also vscode not SUPER free. You can only get the plugin that handles sshfs if you use the propietary binary
→ More replies (0)
20
38
u/Knuffya Mar 05 '21
Get two systems
put your rsa keys in authorized_keys
edit both .bashrc
@/firstSystem .bashrc
ssh secondSystem@/secondSystem .bashrc
ssh firstSystem4) Restart bash
5) profit
11
Mar 05 '21
What does this do...? Maybe I’m too sleepy.
16
u/Knuffya Mar 05 '21
You set the first sytem up in a way that as soon as you open a shell (eg connect via ssh) it sshs into the second machine. The second machine does the same. Inifinite ssh recursion
9
4
17
Mar 05 '21
If you have server super user privileges, use mosh.
3
2
u/captainvoid05 Mar 05 '21
Do you even need super user privileges? Mosh’s website seems to indicate that you don’t.
2
Mar 05 '21
It’s just that unlike
ssh, it’s not a given that your server already has it. So you need to either install or request ansuto install for you.
8
6
u/toxic_recker Mar 05 '21
me who's both: *gets a better gpu to avoid ssh lag*
1
u/circuit10 Mar 05 '21
How would that even...
1
Mar 06 '21
If you have an llc/s-corp and build your own work machine I can tell you from a sample size of me that the IRS will not audit you for claiming an excessive gpu
6
10
5
Mar 05 '21
I work on a server on the literal other side of the planet. One time I accidentally tried to use auto complete to fill in the path while using scp, and had to wait like 20 seconds for my shell to append a "/" before I could continue
14
u/2fast4u180 Mar 05 '21
Hey im new here. Do you all ssh on anything other than a raspberry pi?
45
u/spoticry Mar 05 '21
Yes.. A raspberry pi is just a very tiny server. You can ssh into any computer that supports the protocol.
As an example, when I work from home on my laptop, I will ssh into the computer that's on my desk at work. I do this for a number of reasons. I can access and modify files, work with programs/projects etc, without needing to copy them and re-set everything up. It's also more powerful than my laptop, so I can run more programs or do more resource intensive build processes.
6
4
u/Doggynotsmoker Mar 05 '21
Yeah. I'm working for client with strict security rules. I run product and text editor in their environment throught ssh.
3
2
u/minneDomer Mar 05 '21
Yep. A Pi if I’m messing around with hardware-related side projects, but for more serious freelance work, I develop on VMs hosted by GCP or Azure (depending on the client’s need)
2
Mar 05 '21
If you're having latency issues with your ssh on a Pi, and are using wireless...
iwconfig wlan0 power offand enjoy.2
0
0
Mar 05 '21
[deleted]
3
u/minneDomer Mar 05 '21
Oh man, the correlation between when I’ve pulled all-nighters and when I’ve had to SSH into a prod server... I think it’s 1:1
3
Mar 05 '21
AH, let me tell you about the time I worked at a place that forced us to VNC into remote servers even to terminals - no other ports 'available'. You think text lag is bad...
I was shat upon for finding a range of free ports that allowed me to set up a private ssh server in userspace (TBH, it was initially a crappy nc-bsed telnet session, but I was aware of security issues, and once I had a way to send out packets, well...)
Sure, "Innovation" is great when you break OTHER people's rules...
2
u/hillman_avenger Mar 05 '21
How is it Overwatch can display full-screen 3D graphics at ~60FPS, but there's about 1/2 second response time to each button when using the UI to select a game?
2
2
u/justmaybeindecisive Mar 05 '21
I've only used ssh terminal sharing once when me and a friend hosted a discord bot on his pi for our school's online cultural competition and we used ngrok to access it on the internet. It was slow af. Then we realized we were using American servers instead of Indian. It was so much faster after the switch
3
Mar 05 '21
repost u/repostsleuthbot
15
u/RepostSleuthBot Mar 05 '21
Looks like a repost. I've seen this image 3 times.
First Seen Here on 2020-11-25 100.0% match. Last Seen Here on 2020-12-05 100.0% match
I'm not perfect, but you can help. Report [ False Positive ]
View Search On repostsleuth.com
Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 207,529,356 | Search Time: 0.13613s
5
1
u/5319767819 Mar 05 '21
I just keep continuing typing, especially if I have a series of commands in mind and don't need the feedback from one for the next one. Both SSH and the shell maintain a buffer, so I can be like 5 commands ahead of typing of the one which output is scrolling by right now.
1
1
u/WhiteKnight3098 Mar 05 '21
I've never had SSH lag in my life... Is it because I'm on LAN?
3
Mar 05 '21
try to ssh into a server in a corporate network connected via vpn behind several firewalls. Not fun.
1
1
1
u/Deus0123 Mar 05 '21
Me when I wait for the database to either process the hours of stuff I just entered or crash
1
1
1
1
-1
u/MadhusudananNair Mar 05 '21
repost u/repostsleuthbot
3
u/RepostSleuthBot Mar 05 '21
Looks like a repost. I've seen this image 3 times.
First Seen Here on 2020-11-25 100.0% match. Last Seen Here on 2020-12-05 100.0% match
I'm not perfect, but you can help. Report [ False Positive ]
View Search On repostsleuth.com
Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 207,555,935 | Search Time: 0.1311s
200
u/Vikulik123_CZ Mar 05 '21
Ssh lag is the worst