UNIX input redirection

Discussion in 'macOS' started by ACiB708, Jun 20, 2009.

  1. ACiB708 macrumors regular

    Joined:
    Apr 6, 2008
    #1
    Hi all,
    when SSHing into a computer, the default input is the keyboard of the machine you are SSHing from, does anybody know how to make the host computer's keyboard the input? Thanks in advance.
     
  2. Sander macrumors 6502

    Joined:
    Apr 24, 2008
    #2
    You'd probably have to figure out the /dev/ entry for the host keyboard. But what are you trying to accomplish..?
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    That doesn't make a lot of sense, how can you use it's input when the SSH interface likely doesn't know what it is? Sounds like you just need some of your keys remapped for the session. You can adjust some things from Terminal's Preferences on the Settings tab. If there's a specific function you're trying to achieve just let us know.
     
  4. mason.kramer macrumors 6502

    mason.kramer

    Joined:
    Apr 16, 2007
    Location:
    Watertown, MA
    #4
    I don't know what you're trying to do, but I do know that you're doing it wrong.
     
  5. ACiB708 thread starter macrumors regular

    Joined:
    Apr 6, 2008
    #5
    Yes, and when I type ls -a /dev it gives me this:

    . ptywc
    .. ptywd
    ath0 ptywe
    autofs ptywf
    autofs_control random
    autofs_nowait rdisk0
    bpf0 rdisk0s1
    bpf1 rdisk0s2
    bpf2 sdt
    bpf3 stderr
    console stdin
    cu.-COM7-1 stdout
    cu.Bluetooth-Modem systrace
    cu.Bluetooth-PDA-Sync tty
    cu.Bobol-Dial-upNetworking-2 tty.-COM7-1
    cu.Bobol-SerialPort-1 tty.Bluetooth-Modem
    cu.SerialPort-1 tty.Bluetooth-PDA-Sync
    disk0 tty.Bobol-Dial-upNetworking-2
    disk0s1 tty.Bobol-SerialPort-1
    disk0s2 tty.SerialPort-1
    dtrace ttyp0
    dtracehelper ttyp1
    fbt ttyp2
    fd ttyp3
    fsevents ttyp4
    hypervisor ttyp5
    klog ttyp6
    lockstat ttyp7
    machtrace ttyp8
    null ttyp9
    pmCPU ttypa
    profile ttypb
    ptmx ttypc
    ptyp0 ttypd
    ptyp1 ttype
    ptyp2 ttypf
    ptyp3 ttyq0
    ptyp4 ttyq1
    ptyp5 ttyq2
    ptyp6 ttyq3
    ptyp7 ttyq4
    ptyp8 ttyq5
    ptyp9 ttyq6
    ptypa ttyq7
    ptypb ttyq8
    ptypc ttyq9
    ptypd ttyqa
    ptype ttyqb
    ptypf ttyqc
    ptyq0 ttyqd
    ptyq1 ttyqe
    ptyq2 ttyqf
    ptyq3 ttyr0
    ptyq4 ttyr1
    ptyq5 ttyr2
    ptyq6 ttyr3
    ptyq7 ttyr4
    ptyq8 ttyr5
    ptyq9 ttyr6
    ptyqa ttyr7
    ptyqb ttyr8
    ptyqc ttyr9
    ptyqd ttyra
    ptyqe ttyrb
    ptyqf ttyrc
    ptyr0 ttyrd
    ptyr1 ttyre
    ptyr2 ttyrf
    ptyr3 ttys0
    ptyr4 ttys000
    ptyr5 ttys1
    ptyr6 ttys2
    ptyr7 ttys3
    ptyr8 ttys4
    ptyr9 ttys5
    ptyra ttys6
    ptyrb ttys7
    ptyrc ttys8
    ptyrd ttys9
    ptyre ttysa
    ptyrf ttysb
    ptys0 ttysc
    ptys1 ttysd
    ptys2 ttyse
    ptys3 ttysf
    ptys4 ttyt0
    ptys5 ttyt1
    ptys6 ttyt2
    ptys7 ttyt3
    ptys8 ttyt4
    ptys9 ttyt5
    ptysa ttyt6
    ptysb ttyt7
    ptysc ttyt8
    ptysd ttyt9
    ptyse ttyta
    ptysf ttytb
    ptyt0 ttytc
    ptyt1 ttytd
    ptyt2 ttyte
    ptyt3 ttytf
    ptyt4 ttyu0
    ptyt5 ttyu1
    ptyt6 ttyu2
    ptyt7 ttyu3
    ptyt8 ttyu4
    ptyt9 ttyu5
    ptyta ttyu6
    ptytb ttyu7
    ptytc ttyu8
    ptytd ttyu9
    ptyte ttyua
    ptytf ttyub
    ptyu0 ttyuc
    ptyu1 ttyud
    ptyu2 ttyue
    ptyu3 ttyuf
    ptyu4 ttyv0
    ptyu5 ttyv1
    ptyu6 ttyv2
    ptyu7 ttyv3
    ptyu8 ttyv4
    ptyu9 ttyv5
    ptyua ttyv6
    ptyub ttyv7
    ptyuc ttyv8
    ptyud ttyv9
    ptyue ttyva
    ptyuf ttyvb
    ptyv0 ttyvc
    ptyv1 ttyvd
    ptyv2 ttyve
    ptyv3 ttyvf
    ptyv4 ttyw0
    ptyv5 ttyw1
    ptyv6 ttyw2
    ptyv7 ttyw3
    ptyv8 ttyw4
    ptyv9 ttyw5
    ptyva ttyw6
    ptyvb ttyw7
    ptyvc ttyw8
    ptyvd ttyw9
    ptyve ttywa
    ptyvf ttywb
    ptyw0 ttywc
    ptyw1 ttywd
    ptyw2 ttywe
    ptyw3 ttywf
    ptyw4 urandom
    ptyw5 vm-main
    ptyw6 vn0
    ptyw7 vn1
    ptyw8 vn2
    ptyw9 vn3
    ptywa zero
    ptywb

    Based on some google searching, I think the keyboard host is one of the ttyt's right?
     
  6. ACiB708 thread starter macrumors regular

    Joined:
    Apr 6, 2008
    #6
    Macbook keyboard in /dev/ directory

    Does anybody know which is it? in /dev? There are lots of devices I think it probably is one of the ttyt's but does anyone now exactly? Thanks.
     
  7. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #8
    I don't think there is a way to do this - it would be a serious security risk if one were able to ssh into a machine and capture all keystrokes from the main keyboard - perhaps that's what you were counting on?
     
  8. ACiB708 thread starter macrumors regular

    Joined:
    Apr 6, 2008
    #9
    Yes, I suppose you are right. I wanted to see if I could capture my machine's keystrokes, I guess I can't. Thanks all.
     

Share This Page