nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Command line remote access

This is a discussion on Command line remote access within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Dear i am new on linux box but i need to know how i can to access on my remotehost ...


Go Back   nixCraft Linux Forum > Mastering Servers > Networking, Firewalls and Security

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-02-2007, 09:37 PM
Junior Member
User
 
Join Date: Sep 2007
My distro: Debian
Posts: 8
Rep Power: 0
angelus_kit is on a distinguished road
Post Command line remote access

Dear

i am new on linux box but i need to know how i can to access on my remotehost trougth local network with line commande , for exemple when i access on remote host with GUI i use explorer smb://IP_address/e$ and after i have the popup authentication user pass and domaine bu how i can to access with remote host with line comande

could you please help me

thanks
Best regard

sorry for my poor english
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-03-2007, 07:16 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

You need to use smbclient command to access another windows/samba share:

Code:
smbclient //ip-address//e$ -U ntusername
Read 2nd section How do I browser a samba / windows share from a command prompt : Browse a Samba or MS Windows share in Nautilus

Another option is mount remote windows / samba system using mount command:
Code:
mkdir -p /mnt/test
mount -t cifs //server-ip/share username=monk,password=secreat /mnt/test
cd /mnt/test
ls
To access another UNIX / Linux box or to copy file use scp and ssh command. Hit reply button if you need any other help!
__________________
May the force with you!
Reply With Quote
  #3 (permalink)  
Old 09-03-2007, 10:07 PM
Junior Member
User
 
Join Date: Sep 2007
My distro: Debian
Posts: 8
Rep Power: 0
angelus_kit is on a distinguished road
Default

Dear

Very thanks, it's good but i unabel to connect neither first command nor second command.

you can see my error messages

HTML Code:
 root@ange:/home/angel# smbclient //10.1.5.10//e$ -U angel.angelus
Password: 
session setup failed: NT_STATUS_LOGON_FAILURE
HTML Code:
root@angel:/home/angel# mount -t nfs //10.1.5.10/MAIN$ username=angel.angelus,password=my password /mnt/Bluecoatman
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
where is the wrong ???

thanks for your help

Best Regard
Reply With Quote
  #4 (permalink)  
Old 09-03-2007, 11:33 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

It is not
Code:
-t nfs
it should be
Code:
-t cifs
__________________
May the force with you!
Reply With Quote
  #5 (permalink)  
Old 09-04-2007, 03:18 PM
Junior Member
User
 
Join Date: Sep 2007
My distro: Debian
Posts: 8
Rep Power: 0
angelus_kit is on a distinguished road
Red face

dear

yes i tried different option but i have the same error even cifs i use the OS ubuntu server
Reply With Quote
  #6 (permalink)  
Old 09-04-2007, 03:19 PM
Junior Member
User
 
Join Date: Sep 2007
My distro: Debian
Posts: 8
Rep Power: 0
angelus_kit is on a distinguished road
Red face

dear

yes i tried different option but i have the same error even cifs i use the OS ubuntu server

thanks
Best regard
Reply With Quote
  #7 (permalink)  
Old 09-04-2007, 11:18 PM
Junior Member
User
 
Join Date: Sep 2007
My distro: Debian
Posts: 8
Rep Power: 0
angelus_kit is on a distinguished road
Red face

hello

i tried a scond but have the same error

HTML Code:
root@angel:/home/angel# smbclient //10.1.5.6/e$ -U mydomain\angelus.kit
Password: 
session setup failed: NT_STATUS_LOGON_FAILURE
 
but i tried this command

HTML Code:
root@angel:/home/angel# mount.cifs //10.1.5.6/ssh-vnc /mnt/Bluecoatman/ -o user=angelus.kit,dom=mydomain.com
Password: 
root@angel:/home/angel# ls /mnt/Bluecoatman/
Putty-VNC.avi  Putty-VNC.rar  Ssh-Vnc.avi  Ssh-Vnc.rar
it's ok ,it's work fine but could you please help me for a first step
thanks
Best Regard
sorry for my poor english
Reply With Quote
  #8 (permalink)  
Old 09-05-2007, 06:30 PM
Junior Member
User
 
Join Date: Sep 2007
My distro: Debian
Posts: 8
Rep Power: 0
angelus_kit is on a distinguished road
Thumbs up

hi
thanks you all and special thanks for monk i resolved my issue,
the wrong on my files is the symbole <>, when i created the files for authentication windows automatically i write like this

<username = my userID>
but the correct is

username = my userID
password = mypass
domaine = mydomaine

and when type the command
smbclient //10.12.30.90/c$ -A files_authenticate

thnaks
sorry for my poor english
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Remote access to linux server RamPD Linux software 9 05-26-2008 07:21 AM
How do I configure the network card from the command line? jerry Linux software 4 09-17-2007 03:52 PM
MySQL remote server access howto raj Databases servers 0 07-29-2007 05:32 AM
HP UX create or add users from command line using useradd rockdalinux HP-UX 0 12-20-2006 02:13 PM
Remote CVS Access rajuk Linux software 4 10-20-2006 10:41 AM


All times are GMT +5.5. The time now is 11:11 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36