I have a mini netbook with Ubuntu Desktop, and I’d like to remote into it using Putty, so I don’t have to work with laptop on my lap.
Q: What is the IP Address of the netbook.
A: It’s currently using DHCP on wireless and according to enter on terminal “IP ADD”
Q: What happens when you do a Putty session to SSH port 22?
A: Network Error. Connection Refused.
Note: Putty is working to my Centos 7 Server from Windows 7, so I probably just need to install something on Ubuntu
Q: How can I tell if SSH is installed?
A: The ssh daemon is called ‘sshd’. To see if it’s running, enter “ps -A | grep sshd”. This would come back with all process with sshd within it. If it comes back blank, then sshd is not running.
Note: In my case it came back blank.
A: Another way of checking, is “ps aux | grep ssh”
Note: In my case it didn’t come back showing: /usr/sbin/sshd
A: Someone posted a forum, in true Unix spirit with — sudo netstat -natp | grep sshd
Note: In my case, it came back blank
A: sudo /etc/init.d/ssh start
Note: In my case, it came back with command not found — it’s not installed!
Q: How do I install SSH with port 22?
A: sudo apt-get install openssh-server
Note: Response says that following NEW packages will be installed — ncurses-term, openssh-server, openssh-sftp-server, ssh-import-id
Q: What is outcome now of attempting Putty from Win7 to Ubuntu
A: It worked! Had to say yes re: RSA info on key, etc. Logged in fine.
Q: How can I confirm SSH is now installed?
A: ps -A | grep sshd
paul@paul-netbook:~$ ps -A | grep sshd
9785 ? 00:00:00 sshd
9814 ? 00:00:00 sshd
9969 ? 00:00:00 sshd
A: ps aux | grep ssh
paul@paul-netbook:~$ ps aux | grep ssh
root 9785 0.0 0.2 7800 2484 ? Ss 21:59 0:00 /usr/sbin/sshd -D
root 9814 0.1 0.3 13268 3988 ? Ss 21:59 0:00 sshd: paul [priv]
paul 9969 0.0 0.1 13268 2024 ? S 22:00 0:00 sshd: paul@pts/9
paul 10048 0.0 0.0 4676 828 pts/9 S+ 22:03 0:00 grep ssh
A: sudo netstat -natp | grep sshd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 9785/sshd
tcp 0 0 10.0.0.9:22 10.0.0.3:41774 ESTABLISHED 9814/sshd: paul [pr
tcp6 0 0 :::22 :::* LISTEN 9785/sshd
Q: What is outcome of trying Putty to Ubuntu?
A: It now works, now that SSH is running on Ubuntu.