Login to SSH twice at the same time [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Is there any way to setup my SSH client or my GNOME terminal or whatver so that when I SSH into a remote server it opens up TWO connections (or tabs or whatever)?
I always like to have two SSH connections to my remote servers open - one for displaying log files and another to do actual work. It bugs me that I have to login twice everytime.
Possible? Sensible? What's the verdict?!

I'm not sure what you're trying to accomplish. If you only have one terminal open, where would the two connection send output and get input? You might find something like "screen" useful that lets you have multiple virtual terminals that display to a single physical terminal. You use a key sequence to switch between them. I use it all the time when working over a remote login to a Unix box. It's also nice because you can re-attach to your virtual terminals if you lose your connection.

Related

Monitoring multiple servers [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I am required to run a couple of batch scripts at frequent intervals on multiple servers. This requires me to log in to each server every time.Is there an easier way to do this?
Thanks in advance.
Use a screen manager such as screen or tmux to keep the sessions alive if you need an interactive session to do your monitoring.
If you just need to poll for data, ssh allows you to pass a command like this
ssh username#hostname 'command'
You can stick this into a bash script and use cron to run it regularly.
Install a cron job at these servers. Then, it depends on the servers and infrastructure how you can access the output, if you need it.

Multi-user secure shell session sharing [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm looking to do some pair programming with a collegue remotely, and I'm looking for the best tool to help us achieve this.
Ideally I'd prefer for the remote user to have as little access as possible, and it'd be preferrable if I could monitor all their actions.
GUI access is not required, shell is enough.
For example, shared tmux or screen sessions would work well, if they were easy to setup and secure.
Just create a new, non-root user account on the machine, then run tmux under that account. Screen sharing is easy and is what will "just happen" if you both "attach" to the same screen session. If there is nothing under that temporary user account that you care about, there is little damage that they could do, AFAIK, though your question may be more appropriate for https://serverfault.com/.

Command Logs Ubuntu [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there anyway that i can log all the commands that a certain user or user group has run in an ubuntu CLI.
I need to keep a track of all the commands run by a certain group of users say
UsrGrp1:usr1,usr2,usr3
as i'm running a Cluster of machines and all are being controlled by different users. And i need to monitor those through the root user of every machine.
The history command gives me all the command logs. But it can be modified by the user itself. So i need to keep the logs under the root user only.
You can try logkeys a keylogger for linux. Another options could be script but with this you need to write a trigger to start it at each user login.

Linux box is full. I am not able to login to linux box. [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
In one of my linux box, some program (database archiver process) has consumed all the space available. I am not able to access this box using ssh username# so that I can login to box and do the clean up and fix the rouge process. Could you please let me know how we can connect this box in such scenario.
If it is local machine, unattachment the hard drive and then connect it with another PC then manually remove extra files there.
You will have to login as root.
If you have physical access to the machine, boot a live version of your linux from CD/DVD/USB. From there you can get a root shell, mount the drive, and clean it up.

Sign script in Linux for SSH access [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want grant user rights to copy a specific file from a remote server via SSH. And I do not want to give him any opportunity to execute something else on a remote server.
I have an access to a remote machine but I'm not an adimistrator, and I want to give another user possibility to copy specific file but nothing else.
Is there any way to sign a script in linux to avoid modification of this script or something similar that could help?
There is a solution to restrict SSH run only specific command:
http://chihungchan.blogspot.com/2008/08/restrict-ssh-to-run-specific-command.html

Resources