GithubHelp home page GithubHelp logo

Comments (19)

majuss avatar majuss commented on June 18, 2024

Versuch mal "ssh easy -vv" und poste den output.

from easybox904.

RobiWa avatar RobiWa commented on June 18, 2024

Danke für die schnelle Antwort.
Also Output ist:

ssh easy -vv
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /root/.ssh/config
debug1: /root/.ssh/config line 1: Applying options for easy
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Hostname has changed; re-reading configuration
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.2.1 [192.168.2.1] port 22.
debug1: connect to address 192.168.2.1 port 22: Connection refused
ssh: connect to host 192.168.2.1 port 22: Connection refused

from easybox904.

majuss avatar majuss commented on June 18, 2024

okay dann noch cat .ssh/config, nur der Teil von easy :)

from easybox904.

RobiWa avatar RobiWa commented on June 18, 2024

Also das wäre:

cat .ssh/config
cat: .ssh/config: Datei oder Verzeichnis nicht gefunden

Allerdings existiert es eig:

cd .ssh
ls
config  id_rsa  id_rsa.pub  known_hosts

Verstehe das nicht ganz, oder mache ich was falsch?

from easybox904.

majuss avatar majuss commented on June 18, 2024

Wo ist deine ssh-config datei? Sie sollte in /home/anu/.ssh sein. Bitte poste sie. Und dann nicht unter root verbinden sondern als normaler user. Also nochmal exit

from easybox904.

RobiWa avatar RobiWa commented on June 18, 2024

Okay.. ich habe es allerdings alles unter root gemacht, dürfte ja eigentlich kein Unterschied machen oder?

root@linux:~# cat .ssh/config
Host easy
Hostname 192.168.2.1
User root
Identityfile ~/.ssh/id_rsa
KexAlgorithms diffie-hellman-group1-sha1

--

root@linux:$ nano .ssh/config
root@linux:$ sudo -s
root@linux:~# ssh easy -vv
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /root/.ssh/config
debug1: /root/.ssh/config line 1: Applying options for easy
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Hostname has changed; re-reading configuration
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.2.1 [192.168.2.1] port 22.
debug1: connect to address 192.168.2.1 port 22: Connection refused
ssh: connect to host 192.168.2.1 port 22: Connection refused

from easybox904.

majuss avatar majuss commented on June 18, 2024

Erstell mal das config file unter deinem User und connecte dich per ssh mit deinem User nicht root! Checke auch alle file-permissions. Hast du den USB Stick an der easybox mit dem sesame.txt?

Root benutzt man nicht fürs tägliche arbeiten sondern nur fürs setup (und selbst dann lieber sudo).

from easybox904.

majuss avatar majuss commented on June 18, 2024

Hat es jetzt geklappt? Neues Terminal auf, ohne root. /$username/.ssh/config checken und mit ssh easy verbinden.

from easybox904.

RobiWa avatar RobiWa commented on June 18, 2024

Danke für die Hilfe, ich probiere es gleich aus und gebe bescheid! :-)

from easybox904.

majuss avatar majuss commented on June 18, 2024

The guide got completely rewritten please try it again!

from easybox904.

RobiWa avatar RobiWa commented on June 18, 2024

Okay, danke ich gebe die Tage nochmals Rückmeldung und Spiele nochmals alles durch !

from easybox904.

RobiWa avatar RobiWa commented on June 18, 2024

Also, die englische Anleitung hat sehr gut Funktioniert. V-DSL Läuft, allerdings leider noch nicht mein Telefon.

Kurze Frage:

VOIP:

ccfg_cli set lineEnable@sip_acc_1=1
ccfg_cli set userId@sip_acc_1=[AreaCode][PhoneNumber] <-------------
ccfg_cli set userId_area@sip_acc_1=[AreaCode] <-------------
ccfg_cli set userId_local@sip_acc_1=[PhoneNumber] <-------------
ccfg_cli set account_name@sip_acc_1=[AreaCode][PhoneNumber] <-------------
ccfg_cli set displayName@sip_acc_1=[AreaCode][PhoneNumber] <-------------
ccfg_cli set password@sip_acc_1=
ccfg_cli set useAuthId@sip_acc_1=0
ccfg_cli set authId@sip_acc_1=
ccfg_cli set realm@sip_acc_1=tel.t-online.de
ccfg_cli set sipdomain@sip_acc_1=tel.t-online.de
ccfg_cli set registrar@sip_acc_1=tel.t-online.de
ccfg_cli set proxy@sip_acc_1=tel.t-online.de
ccfg_cli set outboundProxy@sip_acc_1=tel.t-online.de
ccfg_cli set useOutboundProxy@sip_acc_1=0
ccfg_cli set useDNSSRV@sip_acc_1=1
ccfg_cli set dtmfTxMethod@sip_acc_1=1

Bei den Kästchen mit Area Code und Phone Number, muss diese in die [ ] geschrieben werden oder muss ich diese wegmachen?
Quasi [064263578XXX] oder einfach nur 064263578XXX ohne die [ ].

Auch verstehe ich nicht ganz die Schreibweise der Telefonnummer muss davor noch ein Ländercode wie +49 ?... werde aus den Telekom Informationen auch nicht ganz schlau.

Ist es auch möglich mehrere Rufnummern hinzuzufügen? habe von der Telekom 3 Rufnummern bekommen?

Vielleicht hast du noch eine Antwort auf meine Frage :)

from easybox904.

majuss avatar majuss commented on June 18, 2024

Q1: Einfach nur: 064263578XXX. Area Code steht für Vorwahl und die Klammern sind nur um die "Variablen" voneinander zu trennen, zur besseren Lesbarkeit.

Q2: Nein kein Ländercode, Areacode = Vorwahl (zb. 030 für Berlin).

Q3: Was verstehst du bei den Telekominformationen nicht? Das sind nur die Proxies etc. für SIP.

Q4: Klar mehrere Nummern sind problemlos möglich. Siehe ccfg_cli set userId_local@sip_acc_1= Dort steht ja ne 1 am Ende ;) Einfach alle Optionen die eine Zahl dran haben ebenso für die 2,3.. etc. eintragen.

from easybox904.

RobiWa avatar RobiWa commented on June 18, 2024

Okay danke dann habe ich es glaub falsch gemacht, werde es sofort nochmals Abends testen und gebe Rückmeldung

from easybox904.

RobiWa avatar RobiWa commented on June 18, 2024

Also es hat alles ohne Probleme funktioniert.
Das komische ist ich hatte 2 EasyBox 904x Router, mit einem ging alles ohne Probleme, beim anderen kam immer "Port 22 Connection Refused" auch auf anderen Ports ging es nicht. Beim anderen ohne Probleme.
Man muss dazu sagen der Fehler kam beim Image das hier fertig eingestellt wurde.
Beim eigenen erstellen der Firmware ging es komischerweise ohne Probleme. Woran es genau liegt kann ich nicht sagen.
Im Allgemeinen ging es dennoch sehr schnell und einfach ! Danke nochmals dafür und die sehr gute Anleitung die bestimmt vielen hier helfen wird!

from easybox904.

majuss avatar majuss commented on June 18, 2024

Mich freut es das ich dir helfen konnte :)

from easybox904.

T-E-N avatar T-E-N commented on June 18, 2024

Muss vor "ssh easy" nicht erst ssh-keygen (obwohl in der Kurzanleitung unerwähnt) auf dafür verwendetem System und unter zur Anmeldung eingeloggtem User laufen, damit dessen ~/.ssh folgende Dateien enthält?

id_rsa id_rsa.pub

Oder müssen diese beiden vielmehr exakt die vom Ersteller des https://github.com/majuss/easybox904/blob/master/fullimage.img verwendeten (aber bislang nicht zum Download verfügbaren) sein, um zum Gegenstück im fertigen Image zu passen, damit dieses nicht jeder neu mit eigenem Schlüsselpaar bauen muss?

from easybox904.

majuss avatar majuss commented on June 18, 2024

Der ssh-key ist sowieso sinnfrei. Es erfolgt ein Login über das Passwort ohne key, soweit ich das in Erinnerung habe. Kannst ja mal alles durchprobieren, aber ich denke mal der key ist Wurst.

from easybox904.

T-E-N avatar T-E-N commented on June 18, 2024

Der ssh-key ist sowieso sinnfrei. Es erfolgt ein Login über das Passwort ohne key

Nicht ganz: Er ist immerhin vorhanden, und wer seinen SSH-Client "very verbose" schaltet, kann (bevor die 904 einen der durchprobierten USB-Speicher und die sesame.txt darauf akzeptiert hat) deutlich sehen, dass eine "allein übrigbleibende" publickey-Authentifizierung versucht wird.

Mit dem zum sshd im Image passenden Key käme man also evtl. auch ohne Passwort allzu "easy in die Box" - weshalb Port 22 wohl besser nicht exponiert werden sollte: Könnte sogar im LAN eine Angriffsfläche sein.

from easybox904.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.