Das geht so:
Für mehr Info: man sudoCode:ssh user@host 'echo PASSWORD|sudo -S command'
Ergebnis 1 bis 4 von 4
- 25.01.2011, 14:08 #1Jamba
Themenstarter
- Registriert
- 11.2008
- Beiträge
- 56
sudo: no tty present and no askpass program specified Hi...
Ich möchte via ssh von überall aus mein Apache (XAMPP) starten. Also versuche ich es so:
Ich kann per ssh auf meinen Mac zugreifen! Aber wenn ich das eingebe kommt immer die FehlermeldungCode:ssh USERNAME@HOST sudo /Applications/XAMPP/xamppfiles/xampp start
Ich habe schon in Foren gesucht und herausgefunden, dass sudo immer eine Loginsession möchte. Kann man das irgendwie umgehen?Code:sudo: no tty present and no askpass program specified
MfG
Johatho MacBook der neuen Generation mit 13 Zoll
iMac 27" iPhone 3GS
- 27.01.2011, 20:25 #2The cause of the problem is:
Don't worry; it's been deprecated.
The new one is worse.
- 28.01.2011, 15:33 #3
Selten so einen Schwachsinn gelesen.
Gib du mal schoen weiter dein Passwort im Klartext ins Terminal (Gruß an Salome, Stichwort Console) ein.
Und wenn man schon mit Manpages rumtoent, dann doch bitte mit der die hilft, naemlich die von OpenSSH:
Ergo:
Zitat von $ man ssh
Code:ssh -t USERNAME@HOST sudo /Applications/XAMPP/xamppfiles/xampp start
52 2E 54 2E 46 2E 4D 21 0A 44 65 6E 6E 1F 73 69 65 1F 77 69 73 73 65 6E 1F 6E 69 63 68 74 2C 1F 77 61 73 1F 73 69 65 1F 74 75 6E 21
Make it idiot-proof, and they'll make a better idiot.
- 28.01.2011, 16:46 #4Nö, ich mache sowas nichtGib du mal schoen weiter dein Passwort im Klartext ins Terminal

Mann, auf OpenSSH bin ich gestern aber auch nicht gekommen... aber jetzt wo du's sagst, sehe ich mein FAIL ein. *gThe cause of the problem is:
Don't worry; it's been deprecated.
The new one is worse.


Zitieren

