Tuesday, October 14, 2008

ssh and telnet

Well, what's a Linux install without ssh and telnet? I'm trying to resist hacking my new toy before I've learned it's pitfalls.. but ssh is something I need.

I'm starting as suggested by "The road to Elysium", let's hope it's a good road.

Alt-F2, Check 'Run in terminal', Run

[user@localhost ~]$ su -
Password:
[root@localhost ~]# yum -y install yum-priorities
fedora 2.1 kB 00:00
primary.sqlite.bz2 4.9 MB 00:07
updates 100% |=========================| 2.6 kB 00:00
primary.sqlite.bz2 100% |=========================| 2.2 kB 00:00
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package yum-priorities.noarch 0:1.1.8-1.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
yum-priorities noarch 1.1.8-1.fc8 fedora 8.1 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 8.1 k
Downloading Packages:
(1/1): yum-priorities-1.1.8-1.fc8.noarch.rpm 8.1 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Importing GPG key 0x4F2A6FD2 "Fedora Project " from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Importing GPG key 0xDB42A60E "Red Hat, Inc " from /etc/pki/rpm-gpg/RPM-GPG-KEY
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: yum-priorities ######################### [1/1]

Installed: yum-priorities.noarch 0:1.1.8-1.fc8
Complete!


Check the contents of yum-priorities, edit it to match the below -

[root@localhost ~]# cat /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
check_obsoletes = 1

Install the livna repository -
[root@localhost ~]# rpm -Uvh http://www.fedorafaq.org/f8/yum http://rpm.livna.org/livna-release-8.rpm
Retrieving http://www.fedorafaq.org/f8/yum
Retrieving http://rpm.livna.org/livna-release-8.rpm
warning: /var/tmp/rpm-xfer.N4ZUob: Header V3 DSA signature: NOKEY, key ID a109b1ec
Preparing... ########################################### [100%]
1:livna-release ########################################### [ 50%]
2:yum-fedorafaq ########################################### [100%]

Some quick checking with yum shows openssl is ready installed, but not openssh.

[root@localhost ~]# yum list openssh*
Loading "priorities" plugin
119 packages excluded due to repository priority protections
Available Packages
openssh.i386 4.7p1-2.fc8 fedora
openssh-askpass.i386 4.7p1-2.fc8 fedora
openssh-clients.i386 4.7p1-2.fc8 fedora
openssh-server.i386 4.7p1-2.fc8 fedora
[root@localhost ~]# yum install openssh*
Loading "priorities" plugin
119 packages excluded due to repository priority protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package openssh-askpass.i386 0:4.7p1-2.fc8 set to be updated
---> Package openssh-clients.i386 0:4.7p1-2.fc8 set to be updated
---> Package openssh.i386 0:4.7p1-2.fc8 set to be updated
---> Package openssh-server.i386 0:4.7p1-2.fc8 set to be updated
filelists.xml.gz 100% |=========================| 173 kB 00:01
filelists.sqlite.bz2 8.0 MB 00:22
filelists.sqlite.bz2 100% |=========================| 224 kB 00:01
filelists.sqlite.bz2 100% |=========================| 3.0 kB 00:00
filelists.sqlite.bz2 100% |=========================| 394 kB 00:00
filelists.sqlite.bz2 100% |=========================| 1.1 kB 00:00
filelists.sqlite.bz2 100% |=========================| 76 kB 00:00
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
openssh-askpass i386 4.7p1-2.fc8 fedora 38 k
openssh-clients i386 4.7p1-2.fc8 fedora 463 k
openssh-server i386 4.7p1-2.fc8 fedora 264 k
Installing for dependencies:
openssh i386 4.7p1-2.fc8 fedora 284 k

Transaction Summary
=============================================================================
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): openssh-server-4.7p1-2.fc8.i386.rpm 264 kB 00:00
(2/4): openssh-4.7p1-2.fc8.i386.rpm 284 kB 00:00
(3/4): openssh-clients-4.7p1-2.fc8.i386.rpm 463 kB 00:00
(4/4): openssh-askpass-4.7p1-2.fc8.i386.rpm 38 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: openssh ######################### [1/4]
Installing: openssh-askpass ######################### [2/4]
Installing: openssh-clients ######################### [3/4]
Installing: openssh-server ######################### [4/4]

Installed: openssh-askpass.i386 0:4.7p1-2.fc8 openssh-clients.i386 0:4.7p1-2.fc8 openssh-server.i386 0:4.7p1-2.fc8
Dependency Installed: openssh.i386 0:4.7p1-2.fc8
Complete!

And, oh how I love it when things work first go!

[root@localhost ~]# ssh root@192.168.1.10
The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established.
RSA key fingerprint is 06:86:21:cb:61:3d:4f:4d:02:7f:41:22:0a:2b:52:0d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts.
root@192.168.1.10's password:
root@dlink-EEF76A:~# uname -a
Linux dlink-EEF76A 2.6.12.6-arm1 #29 Wed Apr 30 10:03:59 CST 2008 armv5tejl unknown
root@dlink-EEF76A:~# exit
Connection to 192.168.1.10 closed.

and for completeness -

[root@localhost ~]# yum install telnet.i386
...
Installed: telnet.i386 1:0.17-41.fc8
Complete!
[root@localhost ~]# telnet 192.168.1.10
Trying 192.168.1.10...
Connected to 192.168.1.10.
Escape character is '^]'.



BusyBox v1.12.0.svn (2008-07-11 12:43:14 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# exit
Connection closed by foreign host.

No comments: