-1
votes
1answer
49 views

Login by ssh , change the remote PS1 and don't quit the remote ssh shell [closed]

I want to change PS1 when i ssh another centos strshell = 'PS1="remote!"' os.system("ssh -i %s -l%s -p%s %s %s"%(SSH_KEY,SSH_USER,SSH_PORT,des,strshell)) ssh quit automatically. I want to ...
1
vote
2answers
33 views

Issue with sharp in host vars Ansible

Since # is considered as a comment in /etc/ansible/hosts I'm unable to use a password containing a sharp. [hosts] host1 ansible_ssh_user=user ansible_ssh_pass=userpass ansible_su_pass=My#Password ...
0
votes
1answer
61 views

How to clear cache in centos remote server? [duplicate]

I had been trying to clear cache in a remote server and I got these commands. First login as root user and execute: [root@server ~]# sync [root@server ~]# echo 3 > /proc/sys/vm/drop_caches bash: ...
2
votes
1answer
286 views

Terminate remote process when backgrounded ssh session is terminated

So right now I have a bash script that runs a command on a remote machine using ssh. The machine running the bash script is a Linux machine and the remote machine is a Windows machine running cygwin. ...
-1
votes
1answer
60 views

How to allow remote connection to MySQL only for specific accounts in CentOS VPS?

I have a CentOS VPS. Port #3306 for MySQL is open for all customers, and they can connect to their databases remotely. As this can be a cause of security issues, I would like to stop all remote ...
0
votes
0answers
39 views

Is it possible to reconnect to a remote cmd.exe shell?

I am using freesshd.com to run an ssh server on my machine. I need to be able to execute .bat files in their normal environemt so I am using the cmd.exe shell, the only shell I know of that can ...
17
votes
3answers
816 views

How do I ssh on slow/flaky connections?

I am dealing with a really slow shell connection. It is in the cloud and I am very far from the server. My connection also breaks sometimes as it is over the internet and I may also be using shared ...
-2
votes
2answers
573 views

SSH command not working from PHP but works on shell

I am running this command on shell CLI and it works sudo -u apache /usr/bin/mysqldump -u root -p"password" --opt dbname | gzip -c | ssh -o StrictHostKeyChecking=no -o ...
1
vote
2answers
473 views

(ssh tunnel?) Access remote server with private IP through a *DIFFERENT* server with public IP

Let's assume the following hosts: localhost : my laptop remoteserver : a server with a public IP which runs a SSH server. private.remoteserver : a server with a private IP which is only accessible ...
0
votes
1answer
116 views

How can I sudo via a remote chained command?

I am trying to run a script which executes a chain of commands under another user on a remote server. The script contains the following ssh command to return information about the remote user's Drupal ...
1
vote
5answers
2k views

Executing script remotely with “curl | bash” feedback

I'm working on a platform that uses a lot such commands: ssh login@server.com 'curl http://some_server/script.sh | bash' This is really clean and handy to execute scripts remotely, however, I don't ...
0
votes
1answer
181 views

How to dump remote database without using mysqlDump

I have a similar problem from this question How to dump remote database without mysqldump? How ever when I run ssh -f L 3306:localhost:3306 user@remoteserver -N I am receive the following error ...
0
votes
1answer
441 views

Let the local machine beep when some event happen on remote?

While i'm connected to a server via ssh, i want to be alerted for some events. BUT not via email. I would rather use beep for that alert. However, if i put beep as a reaction, it will beep on server ...
0
votes
0answers
50 views

Suggest good authentication scheme for remote clients to connect via SSH?

I have a project where I'll have a number of remote Linux systems in the field. From time to time they'll need to connect to a central server via SSH. These remote systems are automated and have no ...
1
vote
0answers
33 views

command parameter in .ssh/authorized_keys [duplicate]

Possible Duplicate: simple rsync in crontab without password I'm implementing remote backups using rsync. The backup server connects to the host containing the stuff to backup (serverX), ...
2
votes
1answer
872 views

How do I configure SSHd to permit a single command, without giving full login access to the user?

I am looking for best way to call remote command over SSH. I create user 'rpcall', generate new certificate and fill authorized_keys. Secure it little bit more with ...
1
vote
3answers
121 views

Looking for a package that aliases commands on multiple remote hosts using ssh

i would like to find a program that maintains a list of commands that can be aliased for different hosts. for example, we have a database server, and four web servers. a common task is to login to ...
-1
votes
2answers
415 views

Bash loop to move directories on a remote host via ssh

I'm trying to figure out a way to perform the following loop on a remote host via ssh. Basically it renames a series of directories to create a rotating backup. But it's local. I want it to work ...
12
votes
5answers
2k views

What is the best way to run a remote ssh command in background but still displaying?

I need to run SSH commands remotely with the output displaying locally. But if the connection breaks I want the command to still run. I am not talking so much about logging in and executing but doing ...
0
votes
1answer
38 views

Launch SSH access from a remote Server error, possible caused by ssh key forwarding

There is a VM ubuntu server I am using which is named vm. I used to remotely log into it through SSH public key. But now I need to use ssh to other servers FROM vm, ex. pushing to heroku. There is ...
3
votes
2answers
1k views

Script to find out differences between local and remote file systems over SSH

I am looking for a script to find out the differences between a local and remote file systems (over SSH). Ideally the script should do the following: -browse the local file system for folders -find ...
1
vote
5answers
484 views

How to execute a process on remote Linux machine without SSH?

How can I execute a process on a remote machine running Linux without SSH. Since the machine is scheduled to PXE-boot periodically, the SSH key will be changed and executing a process through a script ...
0
votes
1answer
108 views

Unable to force restart mac server by remote because no free ram left

I have a Mac server and now I'm unable to remote or even to SSH to reboot since its out of free ram and I can't use SSH to force it restart or not even be able to remote to the screen to restart the ...
2
votes
3answers
587 views

How to return multiline from remote SSH command

I have a script that backs-up remote systems, and want it to display disk space on the remote backup device prior and post running backup script. Thanks to another post have learnt how to run remote ...
1
vote
3answers
1k views

bash function with ssh

I am just getting into bash for the first time. How would I run a function on the server in this scope? drush status is something only on the server being ssh connected too. #!/bin/bash function ...
2
votes
2answers
122 views

SSH dies when a lot of text transfers through it

I've got a strange problem with SSH. When I try to do something that sends a lot of text over it, often it will break the connection ("connection reset by peer"). It's not every time, but often enough ...
0
votes
2answers
196 views

Yum, OpenSSH and dedicated server over ssh

Quick question: In RHEL5.5 there is OpenSSH 4.3b2 but I really need jailed root functionality (available from 4.8b1 I think). I am working on a dedicated server over ssh. Is it safe to yum remove ...
4
votes
1answer
4k views

How to allow remote connections from non localhost clients with ssh remote port forwarding?

I have a system say "privatesys". I am trying to give access to its web server through a remote proxy using ssh remote port forwarding like below. Private sys name: privatesys Port exposed: 80 The ...
0
votes
2answers
781 views

Perl script that will remotely ssh to linux and get memory status back to my machine

I need help. I have Linux box (openSUSE 11.4); writing Perl script (Perl 5, version 12). My script should SSH to the remote Linux machine and get back with the memory results. So far, I have SSH ...
3
votes
3answers
3k views

How to get a remote desktop / X11 with ubuntu 10.04 LTS from mac os x?

I am running Snow Leopard OS X 10.6 and I have X11 installed. I also have ubuntu 10.04 LTS running on a remote machine. I have root privileges. So far I haven't really installed anything besides the ...
4
votes
2answers
615 views

Enable Remote Login (SSH) without GUI on a Mac

I'm having an issue with my Mac where it's freezing on the initial login. How can I enable ssh without using going into system preferences, etc.
1
vote
2answers
2k views

remote ftp connection from remote server via WinSCP or a windows program?

I have a new server. The hosting gives me a ftp account for backing up the main server. My problem is, I can only connect to this ftp account from the server. I don't like surfing inside folders via ...
0
votes
2answers
910 views

adding remote ssh printer as local printer

I have SSH access to a remote host (FreeBSD) that has a printer set up. I do not have root access on that host or any other special user rights. Now I want to print directly from my laptop on that ...
3
votes
6answers
826 views

Any clever way to put a password in an SSH key?

My host uses passwords instead of id_rsa's to SSH in. But instead of typing the password everytime, is there a way to put the password in my .ssh/config ? For example: Host gravy_access Hostname ...
3
votes
3answers
3k views

Escaping spaces in a remote path when using rsync over a remote SSH connection

When using SSH to connect rsync to a remote server, how do you escape spaces and such in the remote path? A simple backslash escapes the space for the local bash prompt, but on the remote machine the ...
2
votes
1answer
1k views

Ext4 Input/Output Error Reboot via SSH

I've got a remote appliance, and its disk IO seems to have locked up, trying to run anything that isn't already loaded results in errors like this: $ sudo shutdown -r 0 sudo: Can't open ...
1
vote
2answers
850 views

Best tools for “ssh tail -f” style log file monitoring and analysis

I'm looking for a tool to monitor custom PHP Error logs/Apache and possibly Java logs on remote development servers. I'm not looking for a full production log system like Splunk, but something that's ...
2
votes
1answer
157 views

Use local dotfiles on remote session

I have a few servers that I have personal accounts on, I have created an SVN repository to contain my home directory so that I can manage my dotfiles across these servers, which I'm finding works very ...
13
votes
7answers
15k views

How to remotely install Linux via SSH?

I need to remotely install Ubuntu Server 10.04 (x86) on a server currently running RHEL 3.4 (x86). I'll have to be very careful because no one can press the restart button for me if anything goes ...
1
vote
2answers
1k views

Keeping Linux remote console responsive when system loaded

Is it possible to keep a Linux remote console responsive (I'm using SSH but the box is also slow locally) when the system is under high load. I'd like to be able to remote login to the server to ...
1
vote
3answers
567 views

Remote Connections Timing Out to SSH/HTTP in Parallel from Multiple Locations, but not PING, why?

QUESTION: Remote Connections Timing Out to SSH/HTTP in Parallel from Multiple Locations, but NOT PING, why? ISSUE: Have a web server that has remote connections timing out around 50% of the time in ...
1
vote
2answers
791 views

Getting a custom .bashrc available in ssh session

Currently, we have quite a lot of shared ssh logins to various servers, and my colleagues wouldn't like it if I fiddled with the default shell to much. I do however have quite a list of aliases and ...
2
votes
2answers
2k views

SSH + MysqlDump Remote Backup Script

I'm trying to issue a remote mysqldump command, redirect stdout to a dmp file, then tar that up. I'm a bit confused as to how to do the redirection bits over ssh: i.e. ssh user@host.com mysqldump ...
1
vote
4answers
849 views

Is it possible to SSH to linux server behind NAT

I have linux server behind NAT but i can farward the port to LAN computer. How can do that so that at least i can ssh
2
votes
5answers
611 views

Linux: How do I disable any kinds of remote control for a certain user?

How do I disable any kinds of remote control (SSH, X, NFS, SMB, ... what else?) for a certain user? Or, asked the other way round: How do I disable remote control for all users except a certain one? ...
8
votes
7answers
4k views

BASH shell session logging on remote host

What's the best method of logging a BASH shell session to a file on the host machine? The preferred output format would be equivalent to PuTTY's "printable output" log setting, as viewed by the user ...
19
votes
8answers
14k views

What is a good modern parallel SSH tool? [duplicate]

I have heard that pssh and clusterssh are two popular ones, but I thought I would open it to discussion here and see what the community's experiences with these tools were? What are the gotchas? Any ...