I have an mysql Server on hostD. I can access hostD through hostC, hostC through hostB, hostB through hostA and I access hostA using putty on my home device  home(windows)--&gt;hostA--&gt;hostB--&gt;hostC--hostD(mySQL Server)   My goal is to access the server from my home device.  Another challenge is that I don't have any root access on A,B and C. Now I've been experimenting with the '.ssh/config' file and this is what I got so far:   Host BTunnel   HostName hostB   LocalForward 3306 localhost:3306   Host CTunnel   HostName hostC   LocalForward 3306 localhost:3306   Host DTunnel   HostName hostD   LocalForward 3306 localhost:3306   This way I can connect from Putty--> hostA and type in consecutively:  ssh BTunnel ssh CTunnel ssh DTunnel   To get a tunnel from A to D. But I would like to have a solution, where I only type in 1 command from host A to get a Tunnel to D, maybe by chaining up the existing host aliases.  Can anyone offer a solution?
121341
Tunneling data over SSH is pretty straight-forward:  ssh -D9999 username@example.com   sets up port 9999 on your localhost as a tunnel to example.com, but I have a more specific need:   I am working locally on localhost host1 is accessible to localhost host2 only accepts connections from host1 I need to create a tunnel from localhost to host2   Effectively, I want to create a "multi-hop" SSH tunnel. How can I do this? Ideally, I'd like to do this without needing to be superuser on any of the machines.
90176
I often work on one of available to me Linux/HP-UX servers (let's say it is server1) and then do  ssh server2 ((let's say it is server2)) and start working on another Linux/HP-UX server. Then I can connect another server ((let's say it is server3) and start working on it. While working on server3 how to get in command line information from what server I came from?   So on server3 I want to get information that I came from server2 and on server2 I want to get information that I came from server1? What is a command or utility for it?
37998
Using ssh -X user@host I can start programs on the host and X11 forwarding allows me to see their windows on the remote machine. However, I'd like to be able to forward/redirect existing windows.  How would I do that (if it's possible at all)?  Note, VNC is not an option (no server installed on the host and my user has limited permissions).
74154
If I want to find out how the hostname of a remote linux machine on my LAN is, how can I achieve this given I don't have access via SSH etc.?  Probably depends if linux is part of a WINS domain I suppose.
14213
I've got some Linux servers on my home network that I access via "hostname.local", however when using a Windows machine they can't seem to resolve this unless I go via IP address.  How do I make it so my windows machine can resolve hostname.local addresses? I know how to edit C:\Windows\System32\drivers\etc\hosts but surely there's got to be some automatic way to make Windows just find these machines?
36375
There is a system B with the following open servers: I have a web server listening on port 80 and a ssh server listening on 22. However, only port 22 is publicly available. Now, I would like to create some kind of tunnel, so that I can access B:80 from A. However, my client computer A that would like to connect to the system B is not publicly open, either.  So, all I have is a client computer A from where I would like to access the server B and, there, an open port 22. On A, no port is open or can be opened.  What (I think) I would need is to open locally (on A) some port that connects in some way through port 22 of B to port 80 on B.  Is this possibly without using any man-in-the-middle open servers with multiple ports?
116137
Is there a way to back out of all SSH connections and close  in "one shot"?  I work in Windows 7 and use PuTTY to SSH to various Linux hosts.  An example of the way I find myself working:  SSH to host1 with PuTTY... banjer@host1:~&gt; #...doin some work...ooh! need to go check something on host8... banjer@host1:~&gt; ssh host8 banjer@host8:~&gt; #...doin some work...OK time for lunch. lets close putty... banjer@host8:~&gt; exit banjer@host1:~&gt; exit Putty closes.   Per above, any way to get from host8 to closing PuTTY in one shot?  Sometimes I find myself up to 5 or 10 hosts deep.  I realize I can click the X to close the PuTTY window, but I like to make sure my SSH connections get closed properly by using the exit command.  I also realize I'm asking for tips on how to increase laziness.  I'll just write it off as "how can I be more efficient".
39000
Currently i invoke the following:  $ ssh me@host.com my_cmd   This is slow and not easy to automate safely. I would like to establish ssh connection once and have some script that will forward my commands to host.com and print output.  Is that possible ?  Adding my machine to authorized_keys is not an option for me and it wouldn't solve slowness issue.
46446
I have a machine running Ubuntu which I SSH to from my Fedora 14 machine. I want to forward X from the Ubuntu machine back to Fedora so I can run graphical programs remotely. Both machines are on a LAN.  I know that the -X option enables X11 forwarding in SSH, but I feel like I am missing some of the steps.  What are the required steps to forward X from a Ubuntu machine to Fedora over SSH?
58608
I've been hunting all over the inter webs and I cannot find a simple example of the form of port forwarding that I am looking for. Well, the truth is, I may have just simply not understood the jargon used and then overlooked a valid solution.  Here is the proposed setup. I have a computer at home (homeC) and I typically connect to a server at work (workServer.com), but whenever I connect to the server, I am generally (90%+ of the time) simply hopping over to another computer on the network (localC 192.168.x.y). I would love to setup workServer.com to port forward over to the other local computers ip addresses if I use a non-standard port (e.g. 12345).  Assume all computers involved are running some variant to unix, but that the user only has root access on some computers (not workServer.com). In fact, the username user is the same on all computers. I am trying to find ways to solve the following problems:   a command to use in workingServer.com which will forward a port to a given local computer (I also need to know which ports are available, I suppose) the command to run on homeC to connect to localC   On a side note, it would be interesting if it were possible to limit the mac-addresses of computers that can connect to user@workingServer.com because I see this as greatly increasing my security.  If you have any other ideas or useful suggestions, I would greatly appreciate them.
32667
I have three Computers.  PC1 and PC2 is on a private LAN, where PC1 is known to PC2 as 192.168.0.2  PC2 and PC3 is on a another  LAN, where PC2 is known to PC3 as 192.168.123.101  How can I connect to PC1 from PC3 with SSH.  Is there something like:  ssh user@192.168.0.2 -via user@192.168.123.101
13497
Here are details of the machine I want to access using its hostname:  $ hostname hostname $ cat /etc/hosts 127.0.0.1   localhost 127.0.1.1   hostname.company.local  hostname   It's a default Debian 6 (Squeeze) install, so I didn't fiddle with anything yet.  This is what I get from a machine (running Debian Unstable) trying to access above machine:  $ ping hostname ping: unknown host hostname $ ping hostname.company.local ping: unknown host hostname.company.local $ cat /etc/resolv.conf nameserver 192.168.2.21 nameserver 192.168.2.51 search company.local
56873
I have an Ubuntu server and I've installed MySQL.  How would I use my two physical static IP addresses in my.cnf bind-address -- can I add two IP addresses?
110684
I have two remote hosts. host1-> 10.3.0.1 host2-> 10.3.0.2 Both run an ssh server.  The ssh server listens on port 22 in host1 and on port 6969 in host2. Now, using my local machine, I need to copy something from host1 to host2 without logging into either host1 or host2 via ssh. Something like,  scp user@10.3.0.1:/path/to/file user@10.3.0.2/path/to/file   How can I do this, please note that the two hosts use different ports for ssh.
5583
In my server, everytime I try to access MySQL I get the error:        Access denied for user 'root'@'localhost' (using password: NO)   when I try mysqladmin -u root -p password I get        Access denied for user 'root'@'localhost' (using password: YES)   How can I access MySQL in my Ubuntu server 12.04?
75060
Whenever I'm using the internet from an insecure location (such as public wifi) I like to use an ssh tunnel (ssh -D port host) to ensure my traffic can't be sniffed. Unfortunately, there seem to be many applications which do not provide a way to specify a proxy (Flash is one major example).  It feels like there should be some way to use a tunnel for all network traffic from my computer, but I'm complete ignorant of how to do this. Any help would be greatly appreciated.
86521
I just can't seem to figure this one out.  I want to use the command line to connect to a MySQL database residing on another server.  I went ahead and created the username and password for the user.  I have also granted all privileges on that user for that database.  When using the command: mysql -h &lt;hostname&gt; -u &lt;username&gt; -p, I get the following error:  ERROR 1045 (28000): Access denied for user '&lt;username&gt;'@'&lt;local_machine_hostname&gt;' (using password: YES)   The problem is that it keeps appending the current machine's hostname into the username.  Obviously, that user@&lt;local_machine_hostname&gt; is not correct.  It doesn't matter what I type.  For instance, if I type:  mysql -h &lt;hostname&gt; -u '&lt;username&gt;'@'&lt;hostname&gt;' -p   It does the same, only in the error output, it says:  Access denied for user '&lt;username&gt;@&lt;hostname&gt;'@'&lt;local_machine_hostname&gt;'   Is there a setting in a configuration file which is allowing this to happen?  It's really quite annoying.  I need to set up a tikiwiki server, and it cannot connect because during the step where you set up mysql, it keeps appending the local machine's hostname to the mysql login name.