<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7088232238405625812</id><updated>2011-07-07T17:07:01.912-07:00</updated><title type='text'>mac os</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://machhh.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7088232238405625812/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://machhh.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>الامل</name><uri>http://www.blogger.com/profile/15514721956246302376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='24' src='http://2.bp.blogspot.com/_ihwNOPWOSlE/S5uHv1CZ1uI/AAAAAAAAAAM/0mo7SIIlrEc/S220/0A85DBB4_43CD6F11_0530.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7088232238405625812.post-8672616120114163887</id><published>2010-03-16T02:11:00.000-07:00</published><updated>2010-03-16T02:13:22.042-07:00</updated><title type='text'>Privacy Policy</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;&lt;b&gt;Privacy Policy for http://machhh.blogspot.com&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you require any more information or have any questions about our privacy policy, please feel free to contact us by email at mirna2285@gmail.com.&lt;br /&gt;&lt;br /&gt;At http://machhh.blogspot.com, the privacy of our visitors is of extreme importance to us. This privacy policy document outlines the types of personal information is received and collected by http://machhh.blogspot.com and how it is used.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Log Files&lt;/b&gt;&lt;br /&gt;Like many other Web sites, http://machhh.blogspot.com makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cookies and Web Beacons&lt;/b&gt;&lt;br /&gt;http://machhh.blogspot.com does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.&lt;br /&gt;&lt;br /&gt; &lt;b&gt;DoubleClick DART Cookie&lt;/b&gt;&lt;br /&gt;.:: Google, as a third party vendor, uses cookies to serve ads on http://machhh.blogspot.com.&lt;br /&gt;.:: Google's use of the DART cookie enables it to serve ads to users based on their visit to http://machhh.blogspot.com and other sites on the Internet.&lt;br /&gt;.:: Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - http://www.google.com/privacy_ads.html&lt;br /&gt;&lt;br /&gt; Some of our advertising partners may use cookies and web beacons on our site. Our advertising partners include ....&lt;br /&gt;Google Adsense&lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;These third-party ad servers or ad networks use technology to the advertisements and links that appear on http://machhh.blogspot.com send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.&lt;br /&gt;&lt;br /&gt;http://machhh.blogspot.com has no access to or control over these cookies that are used by third-party advertisers. &lt;br /&gt;&lt;br /&gt;You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. http://machhh.blogspot.com's privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.&lt;br /&gt;&lt;br /&gt;If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers' respective websites. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7088232238405625812-8672616120114163887?l=machhh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://machhh.blogspot.com/feeds/8672616120114163887/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://machhh.blogspot.com/2010/03/privacy-policy.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7088232238405625812/posts/default/8672616120114163887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7088232238405625812/posts/default/8672616120114163887'/><link rel='alternate' type='text/html' href='http://machhh.blogspot.com/2010/03/privacy-policy.html' title='Privacy Policy'/><author><name>الامل</name><uri>http://www.blogger.com/profile/15514721956246302376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='24' src='http://2.bp.blogspot.com/_ihwNOPWOSlE/S5uHv1CZ1uI/AAAAAAAAAAM/0mo7SIIlrEc/S220/0A85DBB4_43CD6F11_0530.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7088232238405625812.post-8935380646095420729</id><published>2010-03-13T07:23:00.000-08:00</published><updated>2010-03-13T07:26:41.264-08:00</updated><title type='text'>MacOS iPhone Project: Mac OS 7 for iPhone</title><content type='html'>&lt;div dir="rtl" style="text-align: center;"&gt;&lt;div class="postBody"&gt; &lt;p&gt;Mac OS 7 which, also known as System 7 (&lt;a href="http://en.wikipedia.org/wiki/System_7"&gt;Wikipedia&lt;/a&gt;), has begun a port process to the iPhone. &lt;/p&gt; &lt;p&gt;According to the &lt;a href="http://www.macosiphone.co.cc/"&gt;Web site&lt;/a&gt;: "Welcome to the MacOS iPhone Project! We are Dedicated to putting MacOS on the iPhone. We hope to be launching the code soon, but we are wanting [sic] to complete something before fully releasing stuff, so please bare with us! But heres [sic] what we have [been] working [on] so far."&lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;div class="cnet-image-div image-medium float-left" style="width: 270px;"&gt; &lt;img class="cnet-image" src="http://i.i.com.com/cnwk.1d/i/bto/20090302/paintimage3_270x202.jpg" alt="" height="202" width="270" /&gt; &lt;/div&gt;  &lt;p&gt;The team goes on to describe some of its work. The most difficult issue so far: getting the System 7 cursor working with the iPhone touch screen. Once that was overcome, the team was able to demonstrate the ability to access menus. The sample pictures on their Web site show the emulator running MacPaint, MacDraw, Calculator, and other system functions. &lt;/p&gt; &lt;p&gt;The emulator isn't without flaws; the team points out that when people go through the process of shutting down Mac OS 7, the emulator crashes, "the iPhone will hang for a few minutes and then return to the home screen."&lt;/p&gt; &lt;p&gt;System 7 was code-named "Big Bang" and often referred to as Mac OS 7. It was first released on May 13, 1991, by Apple. It was succeeded by Mac OS 8 in 1997. New features in System 7 included cooperative multitasking, virtual memory, personal file sharing, an improved user interface, QuickTime, and QuickDraw 3D.&lt;/p&gt; &lt;p&gt;You can find more information about this new emulation project at the &lt;a href="http://www.macosiphone.co.cc/"&gt;MacOS iPhone Project&lt;/a&gt;, photos on &lt;a href="http://www.flickr.com/photos/jamescunningham/sets/72157614388516902/"&gt;Flickr&lt;/a&gt;; while the site does not mention this, a jailbroken iPhone would be required to install and run this app or any other emulation app due to iTunes App Store restrictions. These restrictions prohibit any kind of emulation of other operating systems from running on the iPhone.&lt;/p&gt; &lt;p&gt;We'd also like to see the team post a video demonstrating the app going through its paces.&lt;/p&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7088232238405625812-8935380646095420729?l=machhh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://machhh.blogspot.com/feeds/8935380646095420729/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://machhh.blogspot.com/2010/03/macos-iphone-project-mac-os-7-for.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7088232238405625812/posts/default/8935380646095420729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7088232238405625812/posts/default/8935380646095420729'/><link rel='alternate' type='text/html' href='http://machhh.blogspot.com/2010/03/macos-iphone-project-mac-os-7-for.html' title='MacOS iPhone Project: Mac OS 7 for iPhone'/><author><name>الامل</name><uri>http://www.blogger.com/profile/15514721956246302376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='24' src='http://2.bp.blogspot.com/_ihwNOPWOSlE/S5uHv1CZ1uI/AAAAAAAAAAM/0mo7SIIlrEc/S220/0A85DBB4_43CD6F11_0530.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7088232238405625812.post-2767186351712121328</id><published>2010-03-13T06:52:00.000-08:00</published><updated>2010-03-13T07:05:00.869-08:00</updated><title type='text'>SSH on Mac OS X</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.stocksy.co.uk/images/ssh/sharing400.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 398px;" src="http://www.stocksy.co.uk/images/ssh/sharing400.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt; &lt;/div&gt;&lt;p style="text-align: center;"&gt; &lt;strong&gt;Updated 9th December 2008.&lt;/strong&gt; &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; SSH is a secure way to connect to your Mac over untrusted networks, such as the Internet। At its most basic level, it allows you to log into a Mac remotely using the terminal using the sshd and ssh programs. You must enable the SSH service on the Mac you want to log in to:&lt;/p&gt;&lt;p style="text-align: center;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: center;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.stocksy.co.uk/images/ssh/sharing.png"&gt; &lt;/a&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; Once you have the service enabled, it's a matter of logging in using the ssh program on the client to connect to the server: &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;iMac:~ stocksy$ ssh james@194.11.2.81&lt;br /&gt;The authenticity of host '194.11.2.81 (194.11.2.81)' can't be established.&lt;br /&gt;RSA key fingerprint is XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX.&lt;br /&gt;Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;Warning: Permanently added '194.11.2.81' (RSA) to the list of known hosts.&lt;br /&gt;james@194.11.2.81's password:&lt;br /&gt;Last login: Mon Mar 22 21:39:48 2004&lt;br /&gt;Welcome to Darwin!&lt;br /&gt;Power-Mac:~ james$&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;The part about the authenticity of the host is only shown the first time you connect to a Mac, after that it gets added to ~/.ssh/known_hosts&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; So, now you've got a remote terminal on your other Mac. This is useful. Imagine that the Finder has crashed and frozen the whole GUI on your PowerBook, usually it's still possible to SSH into the machine and kill -9 the 'loginwindow' process. This just reloads the GUI and logs you out without restarting. That said, we can do more...&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;h2 style="text-align: center;"&gt;Passwordless logins with SSH&lt;/h2&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;You can SSH without using a password by generating a private/public key pair. Bear with me! The public key resides on the computer you are connecting to (server) and is compared with your private key on the computer you are connecting from (client).&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;On the CLIENT:&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;$ ssh-keygen -t dsa&lt;br /&gt;Generating public/private dsa key pair.&lt;br /&gt;Enter file in which to save the key (/Users/stocksy/.ssh/id_dsa):&lt;br /&gt;Enter passphrase (empty for no passphrase): wxyz&lt;br /&gt;Enter same passphrase again: wxyz&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;The ssh-keygen has just created two DSA (-t dsa specifies this) keys on your Mac.  You need to copy  the ~/.ssh/id_dsa.pub from the client to ~/.ssh/authorized_keys2 on the server using scp:&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;scp [source] [user]@[remote.host]:[destination]&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;For example:&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;&lt;br /&gt;iMac:~ stocksy$ scp ~/.ssh/id_dsa.pub james@194.11.2.81:~/.ssh/औथोरी&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p style="text-align: center;"&gt;If you have several clients you want to connect to the server, you'll need to combine all the id_dsa.pub keys from each machine into one authorized_keys2 file. I would suggest that the best way to do this is to copy all the id_dsa.pub files into a temporary directory on the server, so that you have something like &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;Power-Mac:~/Desktop/ssh jamen$ ls&lt;br /&gt;id_dsa.pub.1 id_dsa.2 id_dsa.3&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;Then, combine them like so:&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;Power-Mac:~/Desktop/ssh jamen$ cat id_dsa.pub.1 id_dsa.pub.2 id_dsa.pub.3 &gt; authorized_keys2&lt;br /&gt;&lt;br /&gt;cp authorized_keys2 ~/.ssh/authorized_keys2&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;p style="text-align: center;"&gt;Ok, you're ready to test your keys! Open a fresh terminal on your client and ssh to your server as above. It should ask you for the passphrase you provided for the key rather than the password of you account on the machine. The next step is to use SSHKeychain to hold this passphrase in the Apple Keychain.&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;Download &lt;a href="http://sshkeychain.org/download.php"&gt;SSHKeychain&lt;/a&gt;, mount the .dmg and drag sshkeychain to /Applications. Run SSHKeychain from the Finder and open its preferences. In the 'general' tab, set it to show in the Status Bar. In the 'security' tab, set 'On client connection' to 'Add keys to agent'. In the 'environment', tick 'Manage global environment variables'. From the menu bar Select 'Agent|Add All Keys'. Enter the passphrase you specified when you did ssh-keygen -t dsa and tick 'Add to keychain'.&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; Now, add /Applications/SSHKeychain to Login items in System Preferences -&gt; Accounts. &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;Log out and back in to your account on the client, open a terminal and ssh to your server, it should not ask for a password!&lt;/p&gt;&lt;div style="text-align: center;"&gt;   &lt;/div&gt;&lt;h2 style="text-align: center;"&gt;Security&lt;/h2&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;These steps aren't necessary to get ssh working, but they do help to harden your Mac against attack.&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; By default, you can use log in to any account on your Mac, but this can be changed. Use your favourite text editor to open /etc/sshd_config, for example: &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;sudo nano /etc/sshd_config&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;Add a line like this:&lt;/p&gt;&lt;div style="text-align: center;"&gt; &lt;pre&gt;AllowUsers tom dick harry&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; Alternatively, you could format the line like this if you know the IPs that require remote access: &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;AllowUsers tom@194.202.218.1 dick@stocksy.co.uk harry@18.51.1.222&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;p style="text-align: center;"&gt; The ssh V1 protocol is not as secure as ssh V2, you can prevent ssh V1 logins by finding this line: &lt;code&gt;#Protocol 2,1&lt;/code&gt; and changing it to: &lt;code&gt;Protocol 2&lt;/code&gt;. &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; You can insist that all logins must use a public key instead of password authentication, change: &lt;code&gt;#PasswordAuthentication yes&lt;/code&gt; to: &lt;code&gt;PasswordAuthentication no&lt;/code&gt;.  If find this is especially useful to access family members' computers which I know have horribly  unsecure passwords. &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;It's possible to add a login banner just to cover yourself. Create the banner as a plain text file, e.g. /etc/loginbanner, then add this line: &lt;code&gt;Banner /etc/loginbanner&lt;/code&gt;.  An example of an appropriate banner might be: &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;THIS IS A PRIVATE COMPUTER SYSTEM AND IS FOR AUTHORISED USE ONLY.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any or all use of this system and all files on this system may be intercepted&lt;br /&gt;&lt;br /&gt;and monitored.  Unauthorised or improper use of this system may result in&lt;br /&gt;&lt;br /&gt;disciplinary and/or legal action.  By continuing to use this system you indicate&lt;br /&gt;&lt;br /&gt;your awareness of and consent to these terms and conditions of use.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LOG OFF IMMEDIATELY if you are not an authorised user of this system or do not&lt;br /&gt;&lt;br /&gt;agree to the conditions stated in this warning.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; Do &lt;strong&gt;NOT&lt;/strong&gt; write "Please log in" or some similar form of words that could be interpreted as consent to use the system. &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;h2 style="text-align: center;"&gt;Tunnelling unsecure protocols over ssh&lt;/h2&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;If you're not familiar with it, VNC is a protocol used to view the desktop of a host using another host on a network. VNC is an unencrypted protocol. If you used it 'naked' over the Internet, somebody could sniff the packets and compromise your Mac. What's needed is an ssh tunnel to encrypt the VNC packets as they travel through the internet:&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;a href="http://www.stocksy.co.uk/images/ssh/encvnc.png"&gt; &lt;img src="http://www.stocksy.co.uk/images/ssh/encvnc400.png" alt="Encrypted" /&gt;&lt;/a&gt;&lt;a href="http://www.stocksy.co.uk/images/ssh/encvnc.png"&gt; &lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: center;"&gt;&lt;a href="http://www.stocksy.co.uk/images/ssh/encvnc.png"&gt; &lt;/a&gt;  &lt;/p&gt;&lt;p style="text-align: center;"&gt;Setting up the tunnel is easy, you just need to know the IP address of the remote host and the port number that VNC is running on (usually 5900). The syntax of the command is: &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;ssh -L [local port]:127.0.0.1:[remote port] [user]@[remote.host]&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;So in this case it would be:&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;ssh -L 5900:127.0.0.1:5900 james@194.11.2.81&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;All you need do now is point your VNC client to 127.0.0.1:5900 and you can connect. If you wanted to allow other machines on your local network to access the remote host through your computer, use the -g switch:&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;ssh -L 5900:127.0.0.1:5900 -g james@194.11.2.81&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;Then other hosts on your network can connect to the remote host through [your.IP]:5900, just remember to open this port on your firewall.&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;I would suggest using &lt;a href="http://sourceforge.net/projects/osxvnc/"&gt;OSXvnc&lt;/a&gt; as your VNC Server and &lt;a href="http://sourceforge.net/projects/cotvnc/"&gt; Chicken of the VNC&lt;/a&gt; as your VNC client.&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;h2 style="text-align: center;"&gt;Forwarding file sharing over SSH&lt;/h2&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;It's easy to  encrypt Apple file sharing with SSH. The syntax is the same as it was for VNC:&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;ssh -L [local port]:127.0.0.1:[remote port] [user]@[remote.host]&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;Apple file sharing works on port 548, so in my case the command would be:&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;ssh -L 54854:127.0.0.1:548 james@194.11.2.81&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;So, your local machine is now serving your remote machine's files on 127.0.0.1:54854, go ahead and test it: In the finder, click 'Go|Connect to server' and type in afp://127.0.0.1:54854 - this should connect you to the remote Mac. As before, if you want your local Mac to act as a gateway to the remote Mac, use the -g switch and connect to afp://your.ip:54854 from the other Macs, but remember to open port 54854 on your local Mac.&lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; It is vital to use a port such as 54854, since Personal File Sharing may have already bound port 548 on your machine, which will cause an error message. &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;h2 style="text-align: center;"&gt;One More&lt;/h2&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; One last commonly used example, MySQL.  &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;ssh -L 3306:127.0.0.1:3306 james@194.11.2.81&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; Now you can point a GUI like CocaMySQL at 127.0.0.1 port 3306 and work on your remote MySQL server.  &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;h2 style="text-align: center;"&gt;Tunneling your Browsing&lt;/h2&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;If you are connected to an untrusted network it would be desirable to encrypt and tunnel your machine's traffic to a trusted machine elsewhere. SSH can do this by acting as a SOCKS proxy by using the -D (dynamic) option: &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;ssh -D3333 james@192.2.0.22&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; Once this is done, configure your favourite browser to use 127.0.0.1 port 3333 as a SOCKS 5 proxy: &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;img src="http://www.stocksy.co.uk/images/ssh/proxy.png" /&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;All web traffic is now sent through the tunnel to your remote machine before being decrypted and forwarded to the final destination. Note that whilst your web traffic is secured, your machine might still be sending DNS queries to the local DNS server. This could allow a third party on the untrusted network to determine which sites you've visited, but not read any information you've transmitted or received. &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;h2 style="text-align: center;"&gt;More Tricks&lt;/h2&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; If you're on a low bandwidth connection, using the -C option enables compression which might help speed things up a bit. &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt;If you have X11 installed, you can use the -Y option to display X11 applications from a remote machine on your own desktop. This is most useful when dealing with a remote Linux or UNIX box: &lt;/p&gt;&lt;div style="text-align: center;"&gt;  &lt;pre&gt;ssh -Y james@10.1.55.17&lt;br /&gt;firefox &amp;amp;&lt;br /&gt;&lt;/pre&gt;  &lt;/div&gt;&lt;p style="text-align: center;"&gt; would launch Firefox on the remote machine, but display the application locally. &lt;/p&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7088232238405625812-2767186351712121328?l=machhh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://machhh.blogspot.com/feeds/2767186351712121328/comments/default' title='تعليقات الرسالة'/><link rel='replies' type='text/html' href='http://machhh.blogspot.com/2010/03/ssh-on-mac-os-x.html#comment-form' title='0 تعليقات'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7088232238405625812/posts/default/2767186351712121328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7088232238405625812/posts/default/2767186351712121328'/><link rel='alternate' type='text/html' href='http://machhh.blogspot.com/2010/03/ssh-on-mac-os-x.html' title='SSH on Mac OS X'/><author><name>الامل</name><uri>http://www.blogger.com/profile/15514721956246302376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='24' src='http://2.bp.blogspot.com/_ihwNOPWOSlE/S5uHv1CZ1uI/AAAAAAAAAAM/0mo7SIIlrEc/S220/0A85DBB4_43CD6F11_0530.jpg'/></author><thr:total>0</thr:total></entry></feed>
