Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-18-2012, 11:55 PM   #1
LQ Newbie
Registered: Aug 2012
Posts: 4

Rep: Reputation: Disabled
Only Putty works with port 22

I'm running Ubuntu Server 12.04 inside a virtual machine and using Windows 7 as my main OS. I'm able to run commands through Putty, but when I try
ssh charlie-think@I.P
the connection times out. If I try
ssh charlie-think
ssh -L 5900:I.P:5900 charlie-think
then I get the message "Connection refused". I've got no idea what's wrong, and so any help would be really appreciated.

Edit: After starting a new vncserver session, and the codes I entered now give the "Connection refused" error.

Last edited by Pompous; 08-19-2012 at 12:08 AM.
Old 08-19-2012, 01:01 AM   #2
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 114
Blog Entries: 2

Rep: Reputation: 10
are you trying to ssh from the windows main to the linux virtual?

Which vncserver are you using?
"vncserver" doesn't support connecting to desktop 0 port 5900. has to be greater (5901-590#)
"x11vnc" however, does support connecting to 5900 if that is what you need.
Old 08-19-2012, 06:48 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,377

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
# This means connect as user charlie-think @ machine with IP=ip_addr
ssh charlie-think@I.P

# this means connect to machine named charlie-think
ssh charlie-think
not the same cmd at all
1 members found this post helpful.
Old 08-22-2012, 01:56 AM   #4
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
If you can't connect, how are you running commands via ssh using putty?

Also it might help if we knew how your virtual networking is setup. Are you bridged? Host Only? NAT?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Only Putty works with port 22 Pompous Linux - Newbie 1 08-19-2012 12:31 AM
ssh not working from Putty, but works fine from Live CD (Suse of Fedora) jspeed43 Linux - Networking 6 04-29-2008 09:30 AM
Putty and Port Forwarding maxsthecat Linux - General 4 08-01-2006 12:55 AM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 AM
VNC with Putty Tunnel port ziggie216 Linux - Software 10 12-02-2003 08:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration