Nemidunam emruz chera man inghad SSH zade shodam, aslan hala ke injur shod, be kurie cheshme ajnabi, man emruzo ruze jahani e SSH elaam mikonam......
khob..... dastan az in gharare :
1- ye windows daram khune ke rush "PuTTY" daram. (172.16.20.254)
2- ye linux daram khune ke gateway e man e va rush sshd start shode. (invalid :172.16.20.1, valid: 21.22.23.24)
3- ye linux daram sherkat ke firewall e va sshd rush start shode, va be 21.22.23.24 ejaze mide ke ba ssh behesh vasl besham. (invalid: 192.168.1.1, valid:11.12.13.14)
4- ye station i hast sherkat ba ip e 192.168.1.10
avval farz mikonam ke station i sherkat hast linux e , mikham az station i ke khune hast ba ssh behesh connect sham:
1- ruye gatewaye khodam tu khune minevisam :
# ssh 11.12.13.14 -L 172.16.20.1:7000:192.168.1.10:22 -N
in yani in ke :
connect sho be firewall e sherkat (11.12.13.14), va port e 7000 ruye ip e invalid e khodet (172.16.20.1) ro map kon be port e 22 ruye 192.168.1.10 e un taraf.
-N yani inke haminjuri vaaysa hich kari nakon, faghat connection o negahdar.
2- hala az station e khune ba putty connect misham be port e 7000 e linux e khodam (172.16.20.1). (vali dar vaghe dare connect mishe be 192.168.1.10:22)
ajaaaaab shaaahkarie...... :-O
hala ye farze dige :
farz mikonam station i ke sherkat hast windows e va rush "PCAnyWhere" dare , ino bebin toro khoda...
1- ruye linux e khodam tu khune (172.16.20.1) minevisam :
# ssh 11.12.13.14 -L 172.16.20.1:5631:192.168.1.10:5631 -D 172.16.20.1:5632 -N
2- hala miram az windows e khune (172.16.2.254) ba "PCAnyWhere" ye connection misazam be linux e khodam tu khune (172.16.20.1) ( vali un dar vaghe dare connect mishe be 192.168.1.10)
-D yani 5632 ye port e "Dynamic" e ke bayad harvaght lazem shod ru 172.16.20.1 baaz beshe.
OhhOhhhhohhhhhhh, bavar kardani nist....