PuTTY's raw connection type is just a way of making a raw TCP connection. You can use telnet or nc to achieve the same thing in Terminal:
will@Darwin:~> nc relay.plus.net 25
220 relay.plus.net ESMTP Exim Tue, 04 Aug 2009 00:02:08 +0100
helo
250 pih-relay08.plus.net Hello [1.2.3.4]
quit
221 pih-relay08.plus.net closing connection
will@Darwin:~> telnet relay.plus.net 25
Trying 212.159.8.107..
Connected to relay.plus.net.
Escape character is '^]'.
220 relay.plus.net ESMTP Exim Tue, 04 Aug 2009 00:03:10 +0100
helo
250 pih-relay08.plus.net Hello [1.2.3.4]
quit
221 pih-relay08.plus.net closing connection
Connection closed by foreign host.
will@Darwin:~> nc relay.plus.net 25
220 relay.plus.net ESMTP Exim Tue, 04 Aug 2009 00:02:08 +0100
helo
250 pih-relay08.plus.net Hello [1.2.3.4]
quit
221 pih-relay08.plus.net closing connection
will@Darwin:~> telnet relay.plus.net 25
Trying 212.159.8.107..
Connected to relay.plus.net.
Escape character is '^]'.
220 relay.plus.net ESMTP Exim Tue, 04 Aug 2009 00:03:10 +0100
helo
250 pih-relay08.plus.net Hello [1.2.3.4]
quit
221 pih-relay08.plus.net closing connection
Connection closed by foreign host.
Aug 3, 2009 4:05 PM Stellar partition manager 3 0 3 download free.
Jul 30, 2017. Remote Connect To Mac with SSH Using PuTTY Head over to the PuTTY website and download and install the app on your PC. Launch the app when it’s installed. The main interface shows several fields you can enter values in. Put your cursor in the Host Name field and type in the IP address of your Mac. PuTTY's copy and paste works entirely with the mouse. In order to copy text to the clipboard, you just click the left mouse button in the terminal window, and drag to select.
What Is Putty?
Putty is an open source SSH client used to connect to a remote server. Putty is basically a terminal for windows based operating systems. It supports several network protocols, including SCP, SSH, Telnet, rlogin, and raw socket connection. PuTTY was originally written for Microsoft Windows, but it has been ported to various other operating systems. To work with Putty you need to know few basic Putty Commands.
Say you have a Linux Server set up.
To connect to your server from your PC you can use Putty and type simple SSH commands to perform different basic actions such as creating folders, copying them and so on.
What you will need to use Putty
1. A Linux based server
2. Putty installed on your computer
3. The server’s IP address
4. Username
5. Password
2. Putty installed on your computer
3. The server’s IP address
4. Username
5. Password
Download Putty and save it on your desktop. You don’t have to install it just click on it and it will run out of the box.
When you open putty you will see something similar to the below image
Out of all those options we are interested in well…just one and that’s the Host Name field(the IP address).
Here you need to input your own server’s IP address in order to connect to it.
Just enter the IP address making sure the connection type SSH is checked and port is 22.
Download Putty For Mac Os
Hit open. You will be presented with a black screen like this.
Useful SSH Putty Commands
1) How to find out where you are, the pwd command shows you present working directory.
2) Change directory
The cd command is used to navigate into a specified directory on your server.
Example: cd /home (moves you into the home folder)
3) The same directory
Using this command you will remain in the same directory you were.
4) Move me up one directory
Above command will navigate two steps back from current directory
5) Go to the previous directory
Above command will navigate to the previous directory.
6) Go to Home folder
Above command will navigate to the home directory on your server.
7) Go to root
Above command will navigate to root.
How to List Directories and Contents
8) List files
Using the ls command in a folder will display all it’s content.
Example: ls /home.
Will return all content of the folder /home.
9) Show me all files in a directory
10) Show contents with file size
If you wish to see a directory’s contents with file sizes just type ls -h
Styles p gangster and a gentleman download. 11) How to see sub-directories recursively
The ls -r command is used to see sub-directories recursively.
12) How to see files by file size
13) List all folders in directory with details
How to Copy files/folders with Putty Commands
14) Copying a file
To copy a file just use the cp ssh command.
![How to run putty on mac How to run putty on mac](https://www.techybugz.com/wp-content/uploads/2018/05/PuTTY-for-Mac.png)
Example:
cp filename.php /home/filename.php Sqlpro studio 1 0 149 – powerful database manager.
15) Copy a folder with all files
This one is used to copy the entire folder with all it’s contents.
16) Copy and rename
How to Move files to different locations
17) Moving a file
Example: mv page.php /home/page.php
18) Move and rename
19) Move file up one directory
example: mv index.html/ .
How to Create files/folders using Putty Commands
20) Create a folder
mkdir
example: mkdir new-folder
21) Create a file
Use the touch command to create different files and file extensions
Example: touch index.php
How to Compress/Uncompress files?
22) Compressing folders
Example: zip -r newfolder.zip newfolder
23) uncompressing folders
Example: unzip newfolder.zip
24) Compressing folders using tar -czvf
Example: tar -czvf wp-content.tar.gz wp-content
25) uncompressing folders using tar -czvf
Example: tar -xvf wp-content.tar.gz
How to Delete/Remove files?
26) Delete a file
To delete a file on your server just use the rm command.
Example: rm index.php
27) Delete all files from a directory
This command is used to delete all contents from a directory.
Example: rm * foldername
28) Delete a folder/directory
Ssh Mac
Use this command to remove directories.
How to change File permissions?
29) Change file permissions
Example: chmod 775 newfolder
30) Change permissions of folder and all files inside
Thanks for reading our article and we will keep updating the same articles with more useful commands in coming days. Keep checking this space for more Putty commands.
You can download PuTTY from the below URL
http://www.putty.org/
You can also check other Linux commands from the below articles box.
How To Install Putty On Mac Os
- 30 Linux Find Commands with Examples