Cookie Consent by Free Privacy Policy Generator 📌 How I Work Fully Remote through SSH without Sudo Rights

🏠 Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeiträge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden Überblick über die wichtigsten Aspekte der IT-Sicherheit in einer sich ständig verändernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch übersetzen, erst Englisch auswählen dann wieder Deutsch!

Google Android Playstore Download Button für Team IT Security



📚 How I Work Fully Remote through SSH without Sudo Rights


💡 Newskategorie: Programmierung
🔗 Quelle: dev.to

The pinnacle of my dream setup wishlist was a fully functional terminal workflow.

Throughout my academic journey, I dabbled with various Linux distributions, investing countless hours into configuring my tiling window manager and experimenting with suckless software. Although enjoyable, it wasn't particularly productive. Post-graduation, with the pressing need for efficiency, I reluctantly transitioned to an Ubuntu workstation — a tough but necessary adjustment.

Yet, the allure of a terminal-only setup remained.

I eventually discovered a method to tick all the boxes for a terminal-only setup, giving me compelling reasons to pursue this path. Primarily, it allowed for a fully remote development setup on the same system where my projects would be deployed. Whether it's executing torch code on a cluster entry node or deploying services in a Docker container, this approach proved invaluable.

The constraints imposed on the remote machines were strict:

  • No sudo rights
  • No option to install my preferred development software
  • No GUI
  • Restricted internet access behind a firewall

Moreover, I sought a development setup that could be ready in under an hour without any configuration requirements.

Even if you opt not to adopt this method fully, having such a system partially ready for on-the-fly production system edits could be beneficial.

Here's a rundown of my software stack:

  • junest
  • AstroNvim + LSP setup
  • nnn
  • Tmux
  • htop ...

Besides a stable internet connection, a proxy for mostly unrestricted internet access is essential. While not mandatory, Git is assumed to be a ubiquitous resource on most server Linux installations.

I'll detail each component below. Feel free to tailor anything to your needs.

Junest

This project was a game-changer, enabling my full terminal transition earlier than expected.

At its core, Junest is an Arch Linux subsystem that leverages the pacman package manager for installations, encompassing AUR repositories to meet the demands of Linux power users.

Explore the Junest Git project and follow the installation instructions. Activate the environment with junest setup and enable the running-from-host options.

That's all!

You can now install virtually anything with:

sudoj pacman -S <package>

For example, to install the software listed above:

sudoj pacman -S neovim nnn tmux htop

AstroNvim with LSP Setup

My Python development needs are straightforward:

  • Quick file navigation
  • Proper completion and search by symbols
  • Basic debugging
  • Minimal configuration with immediate functionality
  • Vim bindings

AstroNvim could be your entry point into a terminal editor that incorporates essential VSCode functionalities, especially if you're accustomed to Vim bindings.

Previously a PyCharm and VSCode user, I switched to Nvim after discovering AstroNvim, a pre-configured Nvim installation ready to use.

For Python debugging, follow the easy two-step installation process detailed on the AstroNvim website.

For a similar Python setup to mine, refer to my simple user configuration, which includes installation instructions.

Alternatively, Emacs is worth exploring for those not satisfied with Vim, though I haven't used it myself. For minimal editing, Nano may suffice.

NNN

This CLI file manager, compatible with Vim bindings, facilitates rapid directory browsing. Press ? within the program to access the manual.

NNN's learning curve is surprisingly gentle, even for non-Vim users.

Tmux

This widely used terminal multiplexer is invaluable, especially in server environments lacking a job scheduler. It ensures ssh sessions persist after disconnection.

For common workflows, consult this handy tmux cheat sheet.

To start and connect to a new session:

tmux new -s <mysession>
tmux at -t <mysession>

Disconnect without closing using Ctrl-b.

Final Thoughts

While there's much more to explore, these tools likely cover the majority of command-line software used in my daily development routine.

I still rely on GUI software, including web browsers. The primary motivation behind this development setup is to bridge the gap between my development and production environments, facilitating immediate debugging when necessary.

Compared to my idealistic setup during my studies, this system has significantly boosted my productivity, even under the constraints often imposed by corporate environments including custom hardware and non-existent Linux sudo rights.

...



📌 How I Work Fully Remote through SSH without Sudo Rights


📈 74.09 Punkte

📌 ssh-context - Bash wrapper around ssh which provides you ability to use contexts (as in kubectl) for SSH.


📈 29.02 Punkte

📌 Fully Open, Fully Sovereign mobile devices - deutsche Übersetzung


📈 25.57 Punkte

📌 Fully Open, Fully Sovereign mobile devices


📈 25.57 Punkte

📌 UK police's face recognition tech breaks human rights laws. Outlaw it, civil rights group urges Court of Appeal


📈 24.21 Punkte

📌 UN Experts to Trump Administration: Reproductive Rights are Human Rights


📈 24.21 Punkte

📌 EXCLUSIVE: Draft Charter of Pompeo’s “Commission on Unalienable Rights” Hides Anti-Human Rights Agenda


📈 24.21 Punkte

📌 Trump’s “Unalienable Rights” Commission Likely to Promote Anti-Rights Agenda 


📈 24.21 Punkte

📌 Jahresbericht von Human Rights Watch: Human Rights Watch warnt vor chinesischem Angriff auf Menschenrechte


📈 24.21 Punkte

📌 Defending Women’s Rights Is Not Terrorism: A Saudi Prosecution on Human Rights Day


📈 24.21 Punkte

📌 Transforming the US Human Rights Report to Reflect Gender Rights — and Security


📈 24.21 Punkte

📌 Abortion Rights are Privacy Rights - ThreatWire


📈 24.21 Punkte

📌 The Human Rights Lessons from COVID-19: Equality Requires Economic and Social Rights Protections


📈 24.21 Punkte

📌 COVID-19 and International Law Series: Human Rights Law – Civil and Political Rights


📈 24.21 Punkte

📌 Now is the Time for the Biden Administration to Commit to Upholding Reproductive Rights as Human Rights


📈 24.21 Punkte

📌 What is the point of Sudo, I mean if you're signed in why do you have to enter Sudo?


📈 23.96 Punkte

📌 Sudo has a mascot, and it is a BLT sandwich https://www.sudo.ws/


📈 23.96 Punkte

📌 YSK : Do not use 'sudo vim/nano/emacs..' to edit a file. Instead, set your $EDITOR and use sudoedit or sudo -e.


📈 23.96 Punkte

📌 sudo bis 1.8.6 sudoers /var/db/sudo/lectured erweiterte Rechte


📈 23.96 Punkte

📌 sudo up to 1.8.6 sudoers /var/db/sudo/lectured privilege escalation


📈 23.96 Punkte

📌 SUDO_KILLER - A Tool To Identify And Exploit Sudo Rules' Misconfigurations And Vulnerabilities Within Sudo


📈 23.96 Punkte

📌 Todd Miller sudo up to 1.8.3p1 src/sudo.c sudo_debug format string


📈 23.96 Punkte

📌 SUDO_KILLER - A Tool To Identify And Exploit Sudo Rules Misconfigurations And Vulnerabilities Within Sudo


📈 23.96 Punkte

📌 FAI, fully automatic installation with open ssh port and key


📈 22.46 Punkte

📌 Do any bluetooth transmitters that work with Windows also work with Linux, Ubuntu or Kubuntu? Do they usually work with all?


📈 21.11 Punkte

📌 SANS is offering fully certified cybersecurity training – without leaving your bunker


📈 20.88 Punkte

📌 Blackbird Secure Desktop – a fully open source modern POWER9 workstation without any proprietary code


📈 20.88 Punkte

📌 Half-Life: Alyx fully playable without VR even on Steam Deck thanks to a mod


📈 20.88 Punkte

📌 Can you get a virus just by clicking a link, without it fully loading?


📈 20.88 Punkte

📌 Fully Vaccinated Individuals Can Socialize Without Masks, Distancing, CDC Says


📈 20.88 Punkte

📌 Sleeping without fully sleeping?


📈 20.88 Punkte

📌 Combating Anti-Asian Violence through UN Human Rights Mechanisms


📈 20.31 Punkte

📌 Process Rights and the Automation of Public Services through AI: The Case of the Liberal State


📈 20.31 Punkte











matomo