# iSCSI can not connect from client

**URL:** <https://forums.suse.com/t/iscsi-can-not-connect-from-client/35099>\
**Category:** SLES SAP Applications\
**Created:** [June 24, 2020, 5:48am UTC](https://forums.suse.com/t/iscsi-can-not-connect-from-client/35099 "2020-06-24T05:48:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuan](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tuan](https://forums.suse.com/u/tuan)\
**Post date:** [June 24, 2020, 5:48am UTC](https://forums.suse.com/t/iscsi-can-not-connect-from-client/35099/1 "2020-06-24T05:48:46Z")

</div>

Dear experts,  
I’m a newbie with SUSE OS. i’m trying to create a disk without formatting and share this iSCSI disk from server to client. and I get this error  
“Target connection failed.  
iscsiadm: Could not login to [iface:default, target:iqn.2020-06.com.example,portal: IP, 3269]  
iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure)  
iscsiadm: could not log into all portals.”  
I don’t know why i get this error, because i didn’t check authorization login for the connect almost server and client.  
please help me how to solved this error.  
Have a nice day!

thanks and best regards  
Tun

---

<div class="post-metadata">

**Author:** ![tooreplyram](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@tooreplyram](https://forums.suse.com/u/tooreplyram)\
**Post date:** [June 24, 2020, 6:12am UTC](https://forums.suse.com/t/iscsi-can-not-connect-from-client/35099/2 "2020-06-24T06:12:01Z")

</div>

Could you please give us more details like  
targetcli ls on iscsi server  
and  
commands you are running on client

---

<div class="post-metadata">

**Author:** ![tuan](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tuan](https://forums.suse.com/u/tuan)\
**Post date:** [June 24, 2020, 7:21am UTC](https://forums.suse.com/t/iscsi-can-not-connect-from-client/35099/3 "2020-06-24T07:21:18Z")

</div>

Dear expert,  
Here is my command:  
targetcli  
/backstores/block\> create sbddb /dev/mapper/lvm\_sbddb-sbd\_db  
/\> cd iscsi  
/iscsi\> create  
/iscsi/iqn.20…d1c/tpg1/luns\> create /backstores/block/sbddb  
/iscsi/iqn.20…d1c/tpg1/acls\> create iqn.1996-04.de.suse:sbddb  
cd ../portals/  
/iscsi/iqn.20…/tpg1/portals\> create 10.1.1.10 3260  
/iscsi/iqn.20…20fbfd1c/tpg1\> set attribute authentication=0  
/\> saveconfig  
/\> exit  
and  
#iscsiadm -m discovery -t sendtargets -p idpnfs  
10.1.1.10:3260,1 iqn.2003-01.org.linux-iscsi.idpnfs.x8664:sn.0bd720fbfd1c  
when i try to connect from itself it announced that:

# iscsiadm -m node -p 10.1.1.10 --login

“Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.idpnfs.x8664:sn.0bd720fbfd1c, portal: 10.1.1.10,3260]  
iscsiadm: Could not login to [iface: default, target: iqn.2003-01.org.linux-iscsi.idpnfs.x8664:sn.0bd720fbfd1c, portal: 10.1.1.10,3260].  
iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure)  
iscsiadm: Could not log into all portals”  
please help me!

thanks and best regards  
Tun
