[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: F12: ssh change port number



On Sun, Nov 22, 2009 at 7:15 PM, Soo-Hyun Choi <s choi hackers org uk> wrote:
>> I have F12 i686, i found this in sshd_config at line 13 (just
>> un-comment and change port number)
>>
>> #Port 22
>
> Yes, what I am saying is it didn't work what it supposed to do by
> simply changing this value. That is if I change this value to an
> arbitrary high number (e.g., 10100), the ssh connection is not being
> made. (Yes, I did restart sshd by doing "sudo /etc/init.d/sshd
> restart" before trying logging in with the changed port number.
>
> [foo foo ~] $ ssh -p 10100 mymachine
> ssh: connect to host mymachine port 10100: No route to host
>
> Any idea?
>
>
>>
>> --
>> Athmane Madjoudj
>
> --
> fedora-list mailing list
> fedora-list redhat com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>

i have changed that line to 2222;

# nmap localhost
Starting Nmap 5.00 ( http://nmap.org ) at 2009-11-22 19:10 CET
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 993 closed ports
PORT     STATE SERVICE
25/tcp   open  smtp
80/tcp   open  http
111/tcp  open  rpcbind
443/tcp  open  https
631/tcp  open  ipp
2222/tcp open  unknown
3306/tcp open  mysql

# ssh -p 2222 localhost

The authenticity of host '[localhost]:2222 ([127.0.0.1]:2222)' can't
be established.
RSA key fingerprint is eb:e7:36:5f:a3:ba:81:eb:d4:6a:f9:18:f7:25:d6:16.
Are you sure you want to continue connecting (yes/no)?


so i thinks that you need to open this port from firewall (to
diagnostic just disable it by: service iptables stop)

HTH



-- 
Athmane Madjoudj


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]