summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/2012-August/008647.html
blob: a5f14a3e1991252ea8d1bf8bc793450c5645717d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-discuss] Setting up a port forward
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Setting%20up%20a%20port%20forward&In-Reply-To=%3C504113A2.8040706%40mageia.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="008646.html">
   <LINK REL="Next"  HREF="008639.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-discuss] Setting up a port forward</H1>
    <B>Thomas Backlund</B> 
    <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Setting%20up%20a%20port%20forward&In-Reply-To=%3C504113A2.8040706%40mageia.org%3E"
       TITLE="[Mageia-discuss] Setting up a port forward">tmb at mageia.org
       </A><BR>
    <I>Fri Aug 31 21:42:26 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="008646.html">[Mageia-discuss] Setting up a port forward
</A></li>
        <LI>Next message: <A HREF="008639.html">[Mageia-discuss]  Where ara the isos for mga3 alpha1?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#8647">[ date ]</a>
              <a href="thread.html#8647">[ thread ]</a>
              <a href="subject.html#8647">[ subject ]</a>
              <a href="author.html#8647">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>31.08.2012 14:41, Anne Wilson skrev:
&gt;<i> -----BEGIN PGP SIGNED MESSAGE-----
</I>&gt;<i> Hash: SHA1
</I>&gt;<i>
</I>&gt;<i> I need to set up ssh in such a way that it comes in on a high port,
</I>&gt;<i> say 5122 which is forwarded to 22 - or otherwise to have ssh listen on
</I>&gt;<i> 5122.  I assume this is beyond MCC, and will entail editing iptables.
</I>&gt;<i>   This is not something I'm familiar with.  Can someone please advise me?
</I>&gt;<i>
</I>
Why not simply have sshd listen on 2 ports and skip need for port 
forwarding?


Just uncomment the &quot;Port 22&quot; line in /etc/ssh/sshd_config
and add a second line with the second port

so it would look like

Port 22
Port 5122

and restart sshd

with this all access that expects port 22 will continue to work,
and you can also access it through the new 5122 port.

Simple and effective, and no portforwarding needed.

--
Thomas



</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="008646.html">[Mageia-discuss] Setting up a port forward
</A></li>
	<LI>Next message: <A HREF="008639.html">[Mageia-discuss]  Where ara the isos for mga3 alpha1?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#8647">[ date ]</a>
              <a href="thread.html#8647">[ thread ]</a>
              <a href="subject.html#8647">[ subject ]</a>
              <a href="author.html#8647">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss
mailing list</a><br>
</body></html>