LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-02-2012, 10:30 PM   #1
AKB48
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Rep: Reputation: Disabled
Smile ssh doesn't work after modify port


i try to modify the port with file "sshd_config"
change "Port 22" to "Port 1122"
and then restart service

but....i can't connect to the host

anyone help?thx
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-02-2012, 10:43 PM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
First you have to make sure port 1122 is open within the network you are . And then change the ssh command to
Quote:
ssh -p 1122 root@192.168.1.1
 
2 members found this post helpful.
Old 03-03-2012, 04:07 AM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Try find out if you can connect if you have Firewall running and if so, try stopping it (# service iptables stop <- example on RHEL based linux)
then if you can successfully connect, you will have to open the firewall port to allow connections.

give a little more information on what system you're running (deb, ubuntu, rhel, fedora...) and what services are running (# ps aux <- should list running services and # netstat -tapln <-- should give a list of services listening ports)

Last edited by lithos; 03-03-2012 at 04:09 AM.
 
1 members found this post helpful.
Old 03-03-2012, 04:20 AM   #4
AKB48
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
thx, i solve it
 
  


Reply

Tags
ssh



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
[SOLVED] UDP port forwarding doesn't work danielhilst Linux - Networking 4 04-19-2012 03:48 PM
Every time I install a port it doesn't work arya6000 *BSD 3 08-29-2008 02:37 AM
Higher port forwarding doesn't work fatman Linux - Networking 3 01-01-2006 09:31 AM
why my ssh doesn't work? lisa2005 Linux - Networking 2 08-24-2005 02:20 AM
Openning a port...doesn't work?! vous Linux - Networking 10 04-09-2005 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:20 AM.

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