[ssh] stdin: is not a tty

Pagina: 1
Acties:

  • decramy
  • Registratie: December 2001
  • Laatst online: 22-02 13:39

decramy

root@birdie:~#

Topicstarter
code:
1
2
3
donald:~# ssh 192.168.0.2
root@192.168.0.2's password:
stdin: is not a tty


andersom werkt wel...

in /var/log/syslog staat op client als server niets over ssh...

het rare is dat ik wel kan ssh`n op mn 2.4.18-bf24 kernel...
welke optie eb ik dan uitgezet in mn 2.6.1 kernel?

code:
1
2
3
4
Jan 21 13:28:55 dagobert sshd[225]: Accepted password for root from ::ffff:192.168.0.40 port 51006 ssh2
Jan 21 13:28:55 dagobert sshd[225]: error: openpty: No such file or directory
Jan 21 13:28:55 dagobert sshd[225]: error: session_pty_req: session 0 alloc failed
Jan 21 13:28:55 dagobert ssh(pam_unix)[225]: session opened for user root by (uid=0)
heb ik wel gevonden...

[ Voor 41% gewijzigd door decramy op 21-01-2004 13:44 ]

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • DPLuS
  • Registratie: April 2000
  • Niet online

DPLuS

 

On Tue, 21 May 2002, juniorlvs wrote:

> I'm having a problem here while trying to Lamboot. Everything seems to
> be OK but I can´t boot. While trying to execute any shell command using
> ssh I receive the message "stdin is not a tty" before the command
> execution (but it does). Could it be the problem? I need to test a
> hyperquicksort and it is urgent. Thanks,

Do you see these error messages when you login to a console? (i.e., not
via rsh/ssh)

Check your "dot" files, such as .bashrc, .cshrc, .tcshrc (depending on
what your default shell is). There is likely a command in there that is
causing this error message. Check for lines containing the "stty"
command, for example.

The simplest way to eliminate it is to comment out this command in your
dot files. You should then be able to run lamboot.

However, you'll need to do some checking to see if you *need* that command
when you login to local machines. If so, it may be easier to put in a
test in your dot files to only execute the stty command (or whatever it
is) when you login to a local machine, and not when you login via rsh/ssh.

Hope that helps.

  • decramy
  • Registratie: December 2001
  • Laatst online: 22-02 13:39

decramy

root@birdie:~#

Topicstarter
heb ik idd gezien...

als ik niet via ssh inlog (gewoon op pc zelf) heb ik geen problemen.
ook heb ik een standaard .bashrc
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# ~/.bashrc: executed by bash(1) for non-login shells.

export PS1='\h:\w\$ '
umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto -hrs'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

[ Voor 64% gewijzigd door decramy op 21-01-2004 13:50 ]

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • blaataaps
  • Registratie: Juli 2001
  • Niet online
error: openpty: No such file or directory
Heb je wel unix-ptys meegecompileerd? CONFIG_UNIX98_PTYS heet die optie in 2.4

  • decramy
  • Registratie: December 2001
  • Laatst online: 22-02 13:39

decramy

root@birdie:~#

Topicstarter
code:
1
2
3
4
5
6
7
8
9
10
#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_PRINTER=y
# CONFIG_LP_CONSOLE is not set
CONFIG_PPDEV=y
# CONFIG_TIPAR is not set

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • blaataaps
  • Registratie: Juli 2001
  • Niet online
Op http://www.patoche.org/LTT/kernel/00000172.html geven ze ook nog de tip CONFIG_DEVPTS_FS aanzetten, maar dat gaat allemaal over een glibc update geloof ik.

Als ik google op je foutmelding en 2.6 krijg ik echter ook die tip in diverse threads op de gentoo-forums.

[ Voor 26% gewijzigd door blaataaps op 21-01-2004 13:58 ]


  • decramy
  • Registratie: December 2001
  • Laatst online: 22-02 13:39

decramy

root@birdie:~#

Topicstarter
en ook die staat aan:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
# CONFIG_DEVFS_DEBUG is not set
CONFIG_DEVPTS_FS=y
CONFIG_DEVPTS_FS_XATTR=y
CONFIG_DEVPTS_FS_SECURITY=y
CONFIG_TMPFS=y
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y


en:
code:
1
2
3
4
5
6
7
dagobert:~# apt-get install glibc
Reading Package Lists... Done
Building Dependency Tree... Done
Package glibc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package glibc has no installation candidate

[ Voor 25% gewijzigd door decramy op 21-01-2004 14:10 ]

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • Wilke
  • Registratie: December 2000
  • Laatst online: 22:40
Dat probleem ken ik ook, ik wed dat je het hebt sinds de upgrade naar kernel 2.6.x

Ik geloof dat je bij 'filesystems' ook 'ptyfs' ofzoiets moest aanzetten, maar aangezien ik nu geen Linux-systeem bij de hand heb kan ik het ff niet precies uitzoeken.

Als je dat al hebt weet ik 't ook even niet meer....

[ Voor 10% gewijzigd door Wilke op 21-01-2004 14:17 ]


  • Ryceck
  • Registratie: Oktober 2001
  • Laatst online: 22-02 09:38

Ryceck

Constants and Variables

Wilke schreef op 21 januari 2004 @ 14:16:
Dat probleem ken ik ook, ik wed dat je het hebt sinds de upgrade naar kernel 2.6.x

Ik geloof dat je bij 'filesystems' ook 'ptyfs' ofzoiets moest aanzetten, maar aangezien ik nu geen Linux-systeem bij de hand heb kan ik het ff niet precies uitzoeken.

Als je dat al hebt weet ik 't ook even niet meer....
Het geen jij bedoelt is "enable /dev/pts filesystem for unix98 ptys"
Te vinden onder filesystems/pseudo-filesystems :)

If everything is working perfect, break something before someone else fucks up.


  • decramy
  • Registratie: December 2001
  • Laatst online: 22-02 13:39

decramy

root@birdie:~#

Topicstarter
zoals aangegeven:
CONFIG_DEVPTS_FS=y

hij staat dus idd aan...

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • blaataaps
  • Registratie: Juli 2001
  • Niet online
istie ook gemount?

  • Wilke
  • Registratie: December 2000
  • Laatst online: 22:40
Ah crap, dat is het natuurlijk. Je moet hem inderdaad ook toevoegen aan je /etc/fstab (zodat 'ie bij booten automatisch gemount wordt).

Again, geen voorbeeldje omdat ik niet achter een Linux machien zit :X

  • blaataaps
  • Registratie: Juli 2001
  • Niet online
code:
1
devpts on /dev/pts type devpts (rw,gid=5,mode=620)

is de output van mount hier, gid en mode aanpassen aan wat op jouw pc van toepassing is :)

  • Bas!
  • Registratie: April 2000
  • Laatst online: 30-11-2025
Wilke schreef op 21 januari 2004 @ 14:40:
Ah crap, dat is het natuurlijk. Je moet hem inderdaad ook toevoegen aan je /etc/fstab (zodat 'ie bij booten automatisch gemount wordt).
Ik zie niets in mijn fstab staan, draai een 2.6 kernel. Bij mij zit devpts ook in de kernel gecompileerd (zoals de default is als je een schone source pakt) en met mount zie ik hem netjes gemount staan:

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

Zelf gecompileerde kernel die rot is misschien?
Ik heb het probleem iig nog niet gehad, niet met zelf gecompileerde kernels en niet met debian kernels (draai nu de 2.6 die in sid zit)
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
Allemaal aanstaan? Als je namelijk make menuconfig doet gaat ie de config van je huidige kernel proberen over te nemen wat natuurlijk niet handig is met een 2.4 kernel.
edit:

en da's natuurlijk niet handig als dan de virtual terminal optie niet wordt overgenomen

[ Voor 6% gewijzigd door Bas! op 21-01-2004 14:55 ]


  • decramy
  • Registratie: December 2001
  • Laatst online: 22-02 13:39

decramy

root@birdie:~#

Topicstarter
mm, vaag....

ik wijzigde net /etc/fstab, door devpts erbij te plakken
mount /dev/pts
zegt ie dat t al in /etc/mtab staat. klopte ook
ik reboot, na devpts weer uit fstab te hebben gesloopt (staat toch al in mtab?)
staat t niet meer in mtab

ik weer in fstab geplakt, weer mount, geen errors.
ikke SSH... t werkt...

vaag 7(8)7

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • moto-moi
  • Registratie: Juli 2001
  • Laatst online: 09-06-2011

moto-moi

Ja, ik haat jou ook :w

In mtab staan alle _op dat moment_ gemounte partities, in fstab staat een lijst met mogelijke partities.
mtab veranderen heeft dus totaal geen zin, behalve dat je linux door de war haalt, en fstab veranderen heeft dus wel zin..
kijk maar eens man mount door ;)

God, root, what is difference? | Talga Vassternich | IBM zuigt

Pagina: 1