Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Konfiguracja sshd


Rekomendowane odpowiedzi

Opublikowano

Hej, zainstalowałam sobie na laptopie PCBSD jest tam czysty BSD podalibyście mi co pozmieniać w ee /etc/ssh/sshd_config  bym mogła logowac się do fillezilli jak i do laptopka zdalnie poprzez putty ?

Opublikowano

NIE JESTEM PEWIEN, ALE CHYBA POWINNO TO BYĆ!

ee /etc/ssh/sshd_config -->  #PermitRootLogin "on" --> PermitRootLogin "yes"                                                #
                                                                                                                            #
/etc/rc.d/sshd restart  -->  /etc/rc.d/sshd start  
Opublikowano

To zmieenilam i nadal nic. Później zmieniła #port 22 na port 22 i nic. Nadal nie moge

Opublikowano

To nie kwestia ustawień ssh a tego jaki adres ip masz przydzielony do lapka z bsdkiem..

 

na początek zrób grepa ssh komendą

 

 

ps -aux | grep ssh

 

następnie powiedz mi w jakiej konfiguracji działa ci laptop z komputerem zdalnym przez który próbujesz się logować opisz więcej czy oba kompy są w tej samej sieci.. jeśli tak to zapodaj wynik z ifconfiga po stronie bsdka.

Opublikowano

@LiveNet 

Po wpisaniu :

ps -aux | grep ssh


Wyśwetla mi się coś takiego.

 

 
root                        1373     0.0   0.4  61220    6364   -   Is      1:51PM   0:00.00 /usr/sbin/sshd
root                        1760     0.0   0.1  18808    2504  v0  S+    1:53PM   0:00.00 grep ssh

No i teraz tak oba komputery są w tej samej sieci, ogólnie to jest tak :

Laptop tam jeest te PC-BSD  (jest tam wersja freeBSD 10.jakaś tam)

Komputer stacjonarny na nim mam zwykłego windowsa xp sp3 :D i nie mogę z niego zalogować sie przez filezille ani putty do tego mojego laptopa.

Komputery oba korzystają z Wi Fi tylko stacjonarny jest pod kablem a laptop z karty sieciowej wi fi, ale jest internet bo sciągąłam porty bez problemu.


A to z ifconfig nie wiem jak dać a do przepisywania to tego strasznie dużo :D

 

 

 

 

 

ale spiszę to co pisze w wlan0:


 
flags=8843<UP, BRODCAST, RUNNING, SIMPLEX, MULTICAST> metric 0 mtu 1500

ether 00:25:d3:6b:ec:e4
intet6 fe80: :225:d3ff:fe6b:ece4%wlan0 prefixlen 64 scopeid 0x4
intet 192.168.0.102 netmask 0xffffff00 brodcast 192.168.0.255
nd6 options=21<PERFORMNUD, AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
status: associated
ssid Home channel 5 (2432 MHz 11g ht/20) bssid 4c:cb:f5:5c:4c:b2
regdomain 96 indoor ecm authomode WPA2/802.11i privacy ON
deftxkey UNDEF AES-COM 2: 128-bit AES-COM 3:128-bit txpower 20 bmiss 7
scanvalid 60 protmode CTS ampdulimit 64k shortgi wme burst
roaming MANUAL
 

 

Przepisałam :D

Opublikowano

No właśnie mam problem
 

 
Błąd:    Network error: Connection refused
Błąd:    Nie można połączyć się z serwerem
 

 login root

hasło na 102% dobre.

port 22

i mam taki właśnie bład.

zmieniałam #PermitRootLogin "on" --> PermitRootLogin "yes"

jak i #port 22na port 22.

i nadal nie mogę ; /


@Edit :

A jak wpisuje to co napisał @Essenia

/etc/init.d/sshd restart

To pisze mi command not found, czyli nie ma takiej komendy :P
 
Opublikowano

Wrzuć sobie ten config sshd_config

#    $OpenBSD: sshd_config,v 1.89 2013/02/06 00:20:42 dtucker Exp $
#    $FreeBSD: release/9.2.0/crypto/openssh/sshd_config 252339 2013-06-28 09:55:00Z des $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

# Note that some of FreeBSD's defaults differ from OpenBSD's, and
# FreeBSD has a few additional options.

Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# The default requires explicit activation of protocol 1
#Protocol 2

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#RSAAuthentication yes
#PubkeyAuthentication yes

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# Change to yes to enable built-in password authentication.
#PasswordAuthentication no
#PermitEmptyPasswords no

# Change to no to disable PAM authentication
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'no' to disable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum FreeBSD-20130515

# no default banner path
#Banner none

# override default of no subsystems
Subsystem    sftp    /usr/libexec/sftp-server

# Disable HPN tuning improvements.
#HPNDisabled no

# Buffer size for HPN to non-HPN connections.
#HPNBufferSize 2048

# TCP receive socket buffer polling for HPN.  Disable on non autotuning kernels.
#TcpRcvBufPoll yes

# Allow the use of the NONE cipher.
#NoneEnabled no

# Example of overriding settings on a per-user basis
#Match User anoncvs
#    X11Forwarding no
#    AllowTcpForwarding no
#    ForceCommand cvs server

potem zrestartuj ssh i powinno śmigać.

Opublikowano

No i nie zadziałało :( . Na tym laptopie w freebsd mam jakis pulpit tam pobrałam filezille i tam normalnie się moge logować.

ale to z  laptopa.

 

a z xp nie moge. ktoś jakies pomysły ma ?

Opublikowano

SPRAWDŹ ZAPORĘ SYSTEMOWĄ NA LAPTOPIE I SPRÓBUJ:

ee /etc/rc.conf  --> inetd_enable="YES"

ee /etc/inetd.conf  --> #ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l -->  ftp stream tcp nowait root /usr/libexec/ftpd ftpd

/etc/rc.d/inetd restart
Opublikowano

 

SPRAWDŹ ZAPORĘ SYSTEMOWĄ NA LAPTOPIE I SPRÓBUJ:

ee /etc/rc.conf  --> inetd_enable="YES"

ee /etc/inetd.conf  --> #ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l -->  ftp stream tcp nowait root /usr/libexec/ftpd ftpd

/etc/rc.d/inetd restart

 

To nie od firewalla, bo ma connection refused.. Jak wrócę z pracy rano to pomyśle bo błąd masz conajmniej dziwny..

 

@Hisao

 

zapodaj mi na pw twój nr gg to dziś się tym zajmiemy.

Opublikowano

A to nie będzie chodziło o to czy ip zewnętrzne czy zewnętrzne ?

Jeśli dwa komputery korzystają z tego samego internetu to powinno działać. Obojętnie czy IP wewnętrzna czy zewnętrzna.

Opublikowano

Stacjonarny ma inną końcówkę :D bo to mi przydziela router :P.

stacjonarny ma ip : 192.168.0.100

Natomiast moj telegon 192.168.0.101

no  i laptop z końcówką 102.

podłączę jeszcze coś to końcówka będzie 103, itd. to na pewno nic nie zmienia ?

Opublikowano

Czyli ja po prostu muszę przekierować port 22, jak i 3306 do ten od mysql ? i będzie śmigać  ?.

A poźniej bez większuch problemów zaloguję sie do klienta gry z stacjonarnego ?.

 

 

 

ustawiłam tak i nie działa.


50849333535358647793.jpg

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...