Jump to content

Remote SSH

Go to solution Solved by sazrocks,
5 minutes ago, kishansripada said:

through terminal

On a Mac?

 

then it should be

 

ssh -p <port> <username>@<ip-address>

 

or

 

ssh -P <port> <username>@<ip-address>

 

Cant remember whether the p is capitalized or not

If you already set up port forwarding, you just need to ssh to  your public ip instead of the local one. Googling 'my public ip' usually gives it right to you.

Build: Intel S2600gz, 2x E5-2670, EVGA SC 1070, Zotac 1060 6GB mini, 48GB Micron 1333mhz ECC DDR3, 2x Intel DPS-750XB 750 watt PSU

https://pcpartpicker.com/user/elerek/saved/3T7D4D

Link to comment
https://linustechtips.com/topic/716601-remote-ssh/#findComment-9130547
Share on other sites

Link to post
Share on other sites

Make sure you have the correct port forwarded (22 is the default) then try to connect to your computer.

 

I wouldn't recommend this though as it would be rather easy for someone to break into your computer with a simple username and password. Better to use a vpn to get into your network or better yet use key based authentication with is practically impossible to crack.

 

Whatever you do, change the WAN port that you are forwarding to LAN port 22 to something else that isn't used.

Current LTT F@H Rank: 24    Score: 10,097,484,643   Stats

Yes, I have 9 monitors.

My main PC:

OS: Windows 11

CPU: Ryzen 9 9950X

Cooler: Noctua NH-D15

Mobo: Asus ProArt X670E Creator WiFi

RAM: 96GB Trident Z Neo @6400 CL32

GPU: RTX 4090 Founders Edition, Radeon Pro WX 5100

PSU: Corsair RM1000e

SSDs: Samsung 990 Pro 4TB NVME, Samsung 970 evo plus 1TB NVME, 2x Samsung 870 evo 2TB, Samsung 860 evo 1TB, Samsung 970 evo 500GB NVME

Case: Fractal Design Define R5 Black w/ Tempered Glass Side Panel Upgrade

Monitors: 9 Monitors: Alienware AW3423DWF 3440x1440@165Hz, Acer H236HLbid 1080p@77Hz, HP D7z72AA 1080p@60Hz, Dell Inspiron 24 3459 1080p@60Hz(used only as display), Dell U2724D 1440p@120Hz, ASUS VP228 1080p@60Hz, 2x HP ZR2440W 1200p@60Hz

 

unRAID server (Plex, Backups, NAS, Duplicati, game servers):

OS: unRAID 7.1.4

CPU: Ryzen R9 3900X

Cooler: Noctua NH-U9S

Mobo: Asus ROG Strix X470-F

RAM: 64GB G-Skill Ripjaws V @ 3200MHz

PSU: EVGA G3 850W

Total Storage: Raw: 94TB, Usable: 64TB

SSD: Samsung 990 Pro 2TB NVME, Teamgroup 4TB NVME

HDDs: 4x HGST Dekstar NAS 4TB @ 7200RPM (3 data, 1 parity) + (7x Seagate Ironwolf NAS 8TB + 2x Toshiba N300 NAS 8TB in ZFS)

Case: Fractal Define 7 XL

Other: Added 3x Noctua NF-F12 intake, 2x Noctua NF-A8 exhaust, Inatek 5 port USB 3.0 expansion card with usb 3.0 front panel header

 

Link to comment
https://linustechtips.com/topic/716601-remote-ssh/#findComment-9130637
Share on other sites

Link to post
Share on other sites

2 minutes ago, kishansripada said:

do I have to list the port along with the public ip

How are you trying to ssh in?

Current LTT F@H Rank: 24    Score: 10,097,484,643   Stats

Yes, I have 9 monitors.

My main PC:

OS: Windows 11

CPU: Ryzen 9 9950X

Cooler: Noctua NH-D15

Mobo: Asus ProArt X670E Creator WiFi

RAM: 96GB Trident Z Neo @6400 CL32

GPU: RTX 4090 Founders Edition, Radeon Pro WX 5100

PSU: Corsair RM1000e

SSDs: Samsung 990 Pro 4TB NVME, Samsung 970 evo plus 1TB NVME, 2x Samsung 870 evo 2TB, Samsung 860 evo 1TB, Samsung 970 evo 500GB NVME

Case: Fractal Design Define R5 Black w/ Tempered Glass Side Panel Upgrade

Monitors: 9 Monitors: Alienware AW3423DWF 3440x1440@165Hz, Acer H236HLbid 1080p@77Hz, HP D7z72AA 1080p@60Hz, Dell Inspiron 24 3459 1080p@60Hz(used only as display), Dell U2724D 1440p@120Hz, ASUS VP228 1080p@60Hz, 2x HP ZR2440W 1200p@60Hz

 

unRAID server (Plex, Backups, NAS, Duplicati, game servers):

OS: unRAID 7.1.4

CPU: Ryzen R9 3900X

Cooler: Noctua NH-U9S

Mobo: Asus ROG Strix X470-F

RAM: 64GB G-Skill Ripjaws V @ 3200MHz

PSU: EVGA G3 850W

Total Storage: Raw: 94TB, Usable: 64TB

SSD: Samsung 990 Pro 2TB NVME, Teamgroup 4TB NVME

HDDs: 4x HGST Dekstar NAS 4TB @ 7200RPM (3 data, 1 parity) + (7x Seagate Ironwolf NAS 8TB + 2x Toshiba N300 NAS 8TB in ZFS)

Case: Fractal Define 7 XL

Other: Added 3x Noctua NF-F12 intake, 2x Noctua NF-A8 exhaust, Inatek 5 port USB 3.0 expansion card with usb 3.0 front panel header

 

Link to comment
https://linustechtips.com/topic/716601-remote-ssh/#findComment-9130639
Share on other sites

Link to post
Share on other sites

5 minutes ago, kishansripada said:

through terminal

On a Mac?

 

then it should be

 

ssh -p <port> <username>@<ip-address>

 

or

 

ssh -P <port> <username>@<ip-address>

 

Cant remember whether the p is capitalized or not

Current LTT F@H Rank: 24    Score: 10,097,484,643   Stats

Yes, I have 9 monitors.

My main PC:

OS: Windows 11

CPU: Ryzen 9 9950X

Cooler: Noctua NH-D15

Mobo: Asus ProArt X670E Creator WiFi

RAM: 96GB Trident Z Neo @6400 CL32

GPU: RTX 4090 Founders Edition, Radeon Pro WX 5100

PSU: Corsair RM1000e

SSDs: Samsung 990 Pro 4TB NVME, Samsung 970 evo plus 1TB NVME, 2x Samsung 870 evo 2TB, Samsung 860 evo 1TB, Samsung 970 evo 500GB NVME

Case: Fractal Design Define R5 Black w/ Tempered Glass Side Panel Upgrade

Monitors: 9 Monitors: Alienware AW3423DWF 3440x1440@165Hz, Acer H236HLbid 1080p@77Hz, HP D7z72AA 1080p@60Hz, Dell Inspiron 24 3459 1080p@60Hz(used only as display), Dell U2724D 1440p@120Hz, ASUS VP228 1080p@60Hz, 2x HP ZR2440W 1200p@60Hz

 

unRAID server (Plex, Backups, NAS, Duplicati, game servers):

OS: unRAID 7.1.4

CPU: Ryzen R9 3900X

Cooler: Noctua NH-U9S

Mobo: Asus ROG Strix X470-F

RAM: 64GB G-Skill Ripjaws V @ 3200MHz

PSU: EVGA G3 850W

Total Storage: Raw: 94TB, Usable: 64TB

SSD: Samsung 990 Pro 2TB NVME, Teamgroup 4TB NVME

HDDs: 4x HGST Dekstar NAS 4TB @ 7200RPM (3 data, 1 parity) + (7x Seagate Ironwolf NAS 8TB + 2x Toshiba N300 NAS 8TB in ZFS)

Case: Fractal Define 7 XL

Other: Added 3x Noctua NF-F12 intake, 2x Noctua NF-A8 exhaust, Inatek 5 port USB 3.0 expansion card with usb 3.0 front panel header

 

Link to comment
https://linustechtips.com/topic/716601-remote-ssh/#findComment-9130656
Share on other sites

Link to post
Share on other sites

1 minute ago, kishansripada said:

Thank you so much, this worked perfectly. I found out that there was an issue with my router when adding ports it would delete them. But the terminal command what what I was looking for. Thanks again!

Hey no problem. 

 

But don't forget what I said above about security, someone could do a lot of damage if they got in.

Current LTT F@H Rank: 24    Score: 10,097,484,643   Stats

Yes, I have 9 monitors.

My main PC:

OS: Windows 11

CPU: Ryzen 9 9950X

Cooler: Noctua NH-D15

Mobo: Asus ProArt X670E Creator WiFi

RAM: 96GB Trident Z Neo @6400 CL32

GPU: RTX 4090 Founders Edition, Radeon Pro WX 5100

PSU: Corsair RM1000e

SSDs: Samsung 990 Pro 4TB NVME, Samsung 970 evo plus 1TB NVME, 2x Samsung 870 evo 2TB, Samsung 860 evo 1TB, Samsung 970 evo 500GB NVME

Case: Fractal Design Define R5 Black w/ Tempered Glass Side Panel Upgrade

Monitors: 9 Monitors: Alienware AW3423DWF 3440x1440@165Hz, Acer H236HLbid 1080p@77Hz, HP D7z72AA 1080p@60Hz, Dell Inspiron 24 3459 1080p@60Hz(used only as display), Dell U2724D 1440p@120Hz, ASUS VP228 1080p@60Hz, 2x HP ZR2440W 1200p@60Hz

 

unRAID server (Plex, Backups, NAS, Duplicati, game servers):

OS: unRAID 7.1.4

CPU: Ryzen R9 3900X

Cooler: Noctua NH-U9S

Mobo: Asus ROG Strix X470-F

RAM: 64GB G-Skill Ripjaws V @ 3200MHz

PSU: EVGA G3 850W

Total Storage: Raw: 94TB, Usable: 64TB

SSD: Samsung 990 Pro 2TB NVME, Teamgroup 4TB NVME

HDDs: 4x HGST Dekstar NAS 4TB @ 7200RPM (3 data, 1 parity) + (7x Seagate Ironwolf NAS 8TB + 2x Toshiba N300 NAS 8TB in ZFS)

Case: Fractal Define 7 XL

Other: Added 3x Noctua NF-F12 intake, 2x Noctua NF-A8 exhaust, Inatek 5 port USB 3.0 expansion card with usb 3.0 front panel header

 

Link to comment
https://linustechtips.com/topic/716601-remote-ssh/#findComment-9130716
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×