Difference between revisions of "Mac"

From Alessandro's Wiki
Line 10: Line 10:
* list SSH available hosts  
* list SSH available hosts  
  dns-sd -B _ssh._tcp .
  dns-sd -B _ssh._tcp .
=== example ===
* ssh to a bonjour host
mac1:~ user$ dns-sd -B _ssh._tcp .
Browsing for _ssh._tcp
Timestamp    A/R Flags if Domain                    Service Type              Instance Name
10:21:16.447  Add    2  4 local.                    _ssh._tcp.                xsysadmin
10:21:16.452  Add    2  4 local.                    _ssh._tcp.                '''v2_ video edit'''
10:21:16.458  Add    2  4 local.                    _ssh._tcp.                x’s Mac Pro
* remove spaces with '-' and add .local at the end
mac1:~ user$ '''ssh''' v2'''-'''video'''-'''edit'''.local'''


== DNS ==
== DNS ==

Revision as of 08:27, 27 May 2010


Terminal

Bonjour

  • list AFP hosts in network
dns-sd -B _afpovertcp._tcp .
  • list SSH available hosts
dns-sd -B _ssh._tcp .

example

  • ssh to a bonjour host
mac1:~ user$ dns-sd -B _ssh._tcp .
Browsing for _ssh._tcp
Timestamp     A/R Flags if Domain                    Service Type              Instance Name
10:21:16.447  Add     2  4 local.                    _ssh._tcp.                xsysadmin
10:21:16.452  Add     2  4 local.                    _ssh._tcp.                v2_ video edit
10:21:16.458  Add     2  4 local.                    _ssh._tcp.                x’s Mac Pro
  • remove spaces with '-' and add .local at the end
mac1:~ user$ ssh v2-video-edit.local

DNS

  • Purge dns cache
Leopard
dscacheutil -flushcache
Tiger
lookupd -flushcache