SSH Port Forwarding that won't quit!
- date: October 1, 2009
I was recently playing with port forwarding via ssh from a remote location to my home server. During the session I set up a wordpress blog and performed some other menial tasks. Now that I'm home I am trying to access the site by navigating to 'localhost' but I am immediately redirected to the port I was previously forwarding to. Unfortunately there is nothing at that location. I have tried:
specifying port 80 specifically, killing all instances of ssh, shutting down the ssh server, rebooting and determining that there are no proxies enabled in Apache.
The only clue that I have here is that when I was setting up the port forwarding I left out some arguments, so it looked like this:
ssh -L 15560:localhost:80 [email protected]
This logs me into the server. The command should have looked like this:
ssh -L 15560:localhost:80 -fN [email protected]
I suspect this may have established some kind of permanent remapping but I'm not 100% on that. Any help would be appreciated.
Quit Bugging me for keyring pass with SSH keys!
location: ubuntuforums.com - date: November 18, 2008
Since upgrading to 8.10, whenever I first ssh to another box I have that I use an ssh key to login, I get prompted for my keyring password. The point of setting up the key was so that I don't have to use a password to ssh to that box after I login. So how do I get the keyring to stop pestering me over this?
Pexpect ssh wrapper gracious quit and silent command
location: linuxexchange.com - date: October 23, 2014
I want to basically wrap interactive ssh, automatizing the login phase:
child = pexpect.spawn('ssh ...')
child.expect('Pass prompt: ')
child.expect('shell prompt> ')
This works. However, when the user then quits the shell (not using expect's control char), they get an exception (OSError).
My solution for this is:
except OSError as err:
if err.errno == 5 and not child.isalive():
# print 'Child exited'
Is there another cleaner solution ?
Also, I'd like to make the "cd /some/where" not echoed to the user. I tried with:
but with this the command is still echoed. Is there a more correct way to do, or is this a bug in setecho ?
Why I quit OS X to Ubuntu
location: ubuntuforums.com - date: July 27, 2012
I wrote a blog about my break-down with OS X
If you want to read it, it's http://chrixsoftwarethoughts.blogspo...pple-os-x.html
SSH to Amazon EC2
location: linuxquestions.com - date: July 22, 2011
I am wondering if anyone has any experience with SSHing to Amazon's EC2 site. Has anybody used this site and have any opinions on the reliability, security and real world usefulness of this site for running a cloud?
SSH] Server Version OpenSSH_5.3
[SSH] FAIL: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
[SSH] INFO: DISCONNECT
I get the above when I try to ZOC to an EC2 instance. I generated the key pair when the instance was created and appears to be a valid key. I am trying to do this from a windows7 box. I also tried using puTTY and got a similar result. Using puTTY Amazon says you have to convert .pem --> .ppk using puTTYgen and save the new resulting private key and use this not the .pem file for initiating the SSH session.
Server refused our key
No supported authentication method available(server sent:
Any help or information on Amazon EC2 appreciated. Thanks
[SOLVED] SSH connection issues on Ubuntu 10.10
- date: December 25, 2011
Recently installed openssh-client & openssh-server on my ubuntu 10.10 box, and my backtrack 5 laptop, yet I can't connect to either host using ssh [email protected]
Keep getting the port 22 connection refused error, and yeah I have updated my port rules to allow 22 on both machines, thanks in advance
HOWTO: Enable and control the gnome VNC vinoserver from an SSH connection
- date: September 28, 2006
NOTE: At long last here's the updated method. This was tested between two Ubuntu 10.10 Maverick hosts. Thanks to all the contributors to this thread, especially the posts by frafu and InkyDinky
:~$ ssh -Y [email protected]
# check settings and hit close button
:~$ sudo -s
:~# export DISPLAY=:0.0
:~# xhost +
:~# /usr/lib/vino/vino-server &
# to start the vino server
:~# netstat -nl | grep 5900
# check to make sure vino server is listening on port 5900
exit or CTRL-D twice to close SSH session to remotebox
:~$ ssh -L 5900:localhost:5900 [email protected]
# establish a new SSH connection to remotebox w/forwarded VNC port
# launch Remote Desktop Viewer (vinagre) under Applications => Internet and connect to localhost
[SOLVED] Creating Custom SSH iptable rules for use with UFW
location: linuxquestions.com - date: February 22, 2011
I'm trying to set up a firewall at the moment that allows access to my custom SSH port from only my friend's url (they have a static url but dynamic IP). I find iptables a bit of a nightmare and was hoping to use UFW for most of my day to day firewall maintenance and just make a few extra iptable rules to cover exceptional circumstances like this. Fortunately it seems UFW allows this with /etc/ufw/before.rules and /etc/ufw/after.rules.
So at the moment I'm just trying to get the basic iptables rules right. As I say I'm not very good with iptables, does this look right?
SSH: Connection Refused Ubuntu 12.04
location: linuxquestions.com - date: June 28, 2012
I'm setting up an SSH server on my home computer. I'm kind of a Linux noob (I've been using Ubuntu since Febuary or so, meaning I'm not terribly good at everything, but I know some basic stuff to try.
So, if I try to connect to the server through my laptop (also running Ubuntu 12.04), I get this error:
Trying to run X11 over ssh: "connect /tmp/.X11unix/X0: No such file or directory"
- date: May 20, 2010
I'm trying to run X11 windows over ssh but I get this error:
ssh -X -C [email protected]
Warning: No xauth data; using fake authentication data for X11 forwarding.
connect /tmp/.X11-unix/X0: No such file or directory
Error: Can't open display: localhost:10.0
I managed to connect with another computer. That computer has a /tmp/.X11-unix/X0 socket. Is there a way to create a socket on this computer?
Page: 1 2 3 4 5 6 7 8 9 10