0
votes
0answers
77 views

ssh reverse tunnel port forwarding connection fails

Updated: diagram http://s22.postimg.org/b2jfgawup/diagram_ssh_tunnel_a1.png I am able to do a reverse port forwarding through the PUTTY GUI with settings similar to below. once I apply this setting, ...
0
votes
3answers
83 views

Tail a file from ssh and mirror to a local file

To tail a file over ssh, I can use ssh -t remotebox "tail -f /var/log/remote.log" However, it is possible to sync the tail with a local file? So a file automatically mirror the update of the tail ...
1
vote
2answers
436 views

Launch firefox on remote server using SSH with a command line parameter

Is there a way to launch firefox on a remote server using SSH this way ? : ssh username@ip_address [command line] When I run: ssh username@ip_address -Y (or -X) firefox (I want to launch firefox ...
-2
votes
1answer
75 views

How to show the actual username instead of nobody in Linux?

I'm trying to find the memory usage for each account on my VPS. I use the "top" command to achieve that but the problem is that it is not showing the actual username for each account. I have four ...
-3
votes
2answers
130 views

How to access a windows command line from a linux machine? [closed]

How to access the windows command line from an ubuntu machine. OS in question is Windows 7 and Ubuntu 12.04. Accessing here refers to remote access.
0
votes
2answers
108 views

mysql: unrecognized service … but mysql is installed and it's working

I'm trying to stop mysql and do some changes , then i'm going to start it again I'm using a SSH client . So i ran this 3 commends without any problem mysql mysql> SET GLOBAL ...
0
votes
3answers
138 views

Starting a background screen session from ssh.

I would like to shoot a command to server to be run say forever! under "screen session" using ssh. so I am using something like ssh -t root@server screen -S myinf "python infinit1.py &" where ...
-1
votes
2answers
148 views

Cannot source .bashrc over SSH

Logging into my work station over SSH, I notice that none of my aliases work. Sure enough: $ alias $ source ~/.bashrc Could not open a connection to your authentication agent. So I googled the ...
0
votes
1answer
220 views

Path not loaded for user when connecting with SSH

I have an Windows 2008 Server Instance running on EC2. I have installed an application and added it to the path and it is now available to my Administrator user from the Command Line. However, when I ...
3
votes
3answers
4k views

changing colors of files/dirs in linux ls

I use putty with a black background and was wondering if there was or is a way to change the colors of the dirs which are dark blue. i noticed DIR_COLORS.xterm and DIR_COLORS do they play this role? ...
3
votes
1answer
126 views

AWS Instance stand-alone ssh connect string differences: root vs ec2-user

I have an instance I created from the web console, using the "Classic" wizard & the default Amazon Linux image. When I go to Instance Actions, Connect, and select the "Connect with a standalone ...
5
votes
2answers
241 views

Confusion over terminology SSH, Shell, Terminal, Command Prompt and Telnet

I don't usually use SSH if I can get away with it, but if I have to I do of course, and I've seemingly done this for years while still managing to remain slightly confused about these different terms ...
31
votes
5answers
2k views

Smoothest workflow to handle SSH host verification errors?

This is a simple issue that we all face and probably resolve manually without giving much thought. As servers change, are re-provisioned, or IP addresses reallocated, we receive the SSH host ...
0
votes
1answer
125 views

Escaping characters when calling ssh from windows

I need to call an ssh command from a Windows command prompt that will execute a command on a remote Linux machine. The command accepts two string parameters, one of which can potentially be ...
-2
votes
1answer
152 views

Telnet scripting server [closed]

I know this is old question, but I cant find anything on google. Is there any good software for centrally scripting telnet and ssh? Basically the following components: Telnet/SSH client, GUI, Server ...
3
votes
3answers
270 views

Multiple SSH sessions in a single command

I'm trying to copy a database from one server to another. I tried using the following command and it's getting tied up on entering the ssh passwords. If I put in one server's password, it complains ...
0
votes
0answers
553 views

Cloning Git repo from server to local machine - is my user level to blame?

Server: CentOS 5.7 Local machine: Macbook Pro, regular terminal client Command issued: git clone --bare ssh://myuser@xxx.xxx.xxx.xxx/home/projectname/public_html ~/gitrepos/projectname.git ...
0
votes
5answers
2k views

SSH command from PHP script - nothing, yet work at cmd line

I'm working on an EC2 box and trying to SSH command another box. The command works in command-line, even php -a interactive. However it does not work when running as apache. Example cmd:- ...
2
votes
1answer
15k views

How to shutdown a virtual machine on ESXi5 over an ssh terminal session?

How can I shutdown a virtual machine when I am on the commandline of an ESXi5 host over ssh? Sidenote: To enable scripts on other machines to login to the ESXi without password, add the public ...
6
votes
5answers
642 views

Run a Command Until it Stops Failing

I want to run a command until it completes sucessfully, then stop. I know I can set up a bash loop to do this, but I'm curious if there are any portable ways to do this similar to watch -n5 that would ...
5
votes
3answers
4k views

How does one escape the “ ` ” (accent grave/backtick) in a path?

I tend to prefix oft-used files and folders with the "accent grave" character (non-shift tilde, the back-tick, or plain-old accent, whathaveyou..), as it is easy to get at, and let's me sort things ...
1
vote
1answer
1k views

Forward all traffic through an ssh tunnel

I hope someone can follow this and I'll explain as best I can. I'm trying to forward all traffic from port 6999 on x.x.x.224, through an ssh tunnel, and onto port 7000 on x.x.x.218. Here is some ...
2
votes
2answers
311 views

Know of a trick to sustain quiet ssh connections from firewall auto-disconnects?

Our enterprise firewall is configured to disconnect ssh connections after 30 minutes of of inactivity. Sometimes, I need to perform an operation on a server that requires a sustained connection ...
2
votes
3answers
942 views

Use SSH to execute remote export command and stay logged in

I have a simple problem of needing to execute an export command over ssh, and then stay logged in, but I'm having some trouble. Though I am interested in a solution to this problem for many reasons, ...
5
votes
5answers
2k views

Parallel execution of different commands on multiple hosts

I'm looking for a tool for running a series of commands like the existing tool: parallel -h parallel [OPTIONS] command -- arguments for each argument, run command with argument, in parallel ...
0
votes
2answers
484 views

rsync: ssh unknown option -p2122

I run this command to replicate data from one server to another. It's been working for a quite a while. I have this setup as a cron job. Yesterday for some reason, it stopped working. I ran it ...
5
votes
4answers
5k views

Managing SSH Connections

On a Linux server, how would I find a list of all current SSH connections, or disconnect a specific SSH connection?
1
vote
3answers
600 views

Enter password only once for ssh

I use the following commands to sync folders. Each command requires me to type in the password. How can I group these commands to only enter the password once? Thanks. rsync -ave ssh ...
1
vote
6answers
2k views

Ctrl + c is not working for certain applications on Linux

It is a really weird problem, but on new systems(Fedora, Ubuntu) ctrl+c has no effect for certain tools: if I execute yum list which runs for almost a minute I can't interrupt to run with ctrl+c ...
2
votes
3answers
2k views

Rebooting access point via SSH with pexpect… hangs. Any ideas?

When I want to reboot my D-Link DWL-3200-AP access point from my bash shell, I connect to the AP using ssh and I just type reboot in the CLI interface. After about 30 seconds, the AP is rebooted: # ...
0
votes
4answers
959 views

I'm having trouble restarting openssh server

I'm trying to restart openssh-server in Ubuntu 10.10 by typing: sudo /etc/init.d/ssh restart and I'm getting this error: sudo: unable to execute /etc/init.d/ssh: Text file busy
0
votes
2answers
1k views

Execute ssh command without password?

I execute the following command: ssh -l admin hostname command Each time I execute it, I am asked to enter a password. How can I automatically provide it with a password since I am going to put ...
0
votes
2answers
154 views

Need CLI ssh server for windows

I am searching for as small as possible console-based ssh server for windows machines. I just need to make one server capable of tunneling so i wouldn't really need ssh keys or anything, just a simple ...
0
votes
4answers
315 views

SSH running two commands at once?

So I want to run Apache benchmark but while it's running, I need to run htop to see the memory and CPU usage. How can I do that? Putty (My ssh client) won't let me type in a command until ab is done ...
1
vote
2answers
186 views

Forwarding ports with ssh on Linux

I have a database server, let's call it: dbserver I have a web server with access to my dbserver, let's call it: webserver I have a development machine that I'd like to use to access a database on ...
0
votes
3answers
294 views

How can I make a command sent through ssh die if the ssh connection is killed?

When using SSH to send a command to a remote server, if the SSH connection dies the process keeps running. Are there any ways to have it kill the child processes if the SSH connection ends? Example: ...
3
votes
13answers
1k views

How can I manage a list of frequently accessed hosts?

How can I quickly select and log in to the multiple hosts that I need to access via ssh? I'm building a shell script like the one below that uses dialog to show a menu of hosts from the command line ...
16
votes
4answers
17k views

Ssh, run a command on login, and then Stay Logged In?

I tried this with expect, but it didn't work: it closed the connection at the end. Can we run a script via ssh which will log into remote machines, run a command, and not disconnect? So ssh in a ...
1
vote
3answers
1k views

SSH Key Management Tool for Linux Command Line

Is there a ssh key management tool, for the Linux command line, that makes a key available to various windows after one entry of the key's passphrase? I'm thinking of something similar to Putty's ...
9
votes
4answers
2k views

SCP filename tab completion

I use SCP regularly to move files between servers and I've heard rumoured that you can use tab-completion on the remote server if you're using public keys, but so far I have had no luck. What I'm ...